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