Merge pull request #2539 from tangly1024/fix/sakura

修复樱花特效
This commit is contained in:
tangly1024
2024-06-27 10:04:20 +08:00
committed by GitHub

View File

@@ -123,7 +123,7 @@ function createSakura() {
'style',
'position: fixed;left: 0;top: 0;pointer-events: none;'
)
canvas.setAttribute('id', id)
canvas.setAttribute('id', 'sakura')
document.getElementsByTagName('body')[0].appendChild(canvas)
cxt = canvas.getContext('2d')
var sakuraList = new SakuraList()
@@ -183,4 +183,4 @@ function destroySakura() {
}
window.createSakura = createSakura
window.destroySakura = destroySakura
window.destroySakura = destroySakura