add check for existing canvas
This commit is contained in:
@ -56,7 +56,7 @@ observer.observe(document.body, {
|
||||
|
||||
function initializeCanvas() {
|
||||
if (document.getElementById('snowfallCanvas')) {
|
||||
console.warn('Canvas bereits vorhanden.');
|
||||
console.warn('Canvas already exists.');
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user