No error in crowdfund if canvas unavailable

This commit is contained in:
nicolas.dorier
2022-01-31 17:05:42 +09:00
parent 7c66f024ed
commit d3a123373e

View File

@@ -1,6 +1,7 @@
document.addEventListener("DOMContentLoaded",function (ev) {
var c = document.getElementById("fireworks");
var ctx = c.getContext("2d");
if (!ctx) return;
var cH;
var cW;