canvas-confetti
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
// canvas-confetti v1.1.2 built on 2020-03-08T19:58:03.541Z | ||
// canvas-confetti v1.1.3 built on 2020-03-30T22:23:12.516Z | ||
!(function (window, module) { | ||
@@ -155,3 +155,11 @@ // source content | ||
].join('\n'); | ||
worker = new Worker(URL.createObjectURL(new Blob([code]))); | ||
try { | ||
worker = new Worker(URL.createObjectURL(new Blob([code]))); | ||
} catch (e) { | ||
// eslint-disable-next-line no-console | ||
typeof console !== undefined && typeof console.warn === 'function' ? console.warn('🎊 Count not load worker', e) : null; | ||
return null; | ||
} | ||
decorate(worker); | ||
@@ -158,0 +166,0 @@ } |
{ | ||
"name": "canvas-confetti", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "performant confetti animation in the browser", | ||
@@ -15,3 +15,3 @@ "main": "src/confetti.js", | ||
"lint": "eslint src/**/*.js test/**/*.js build/**/*.js", | ||
"dev": "static-server --port 9001", | ||
"dev": "node build/serve.js", | ||
"devtest": "cross-env CONFETTI_SHOW=1 npm test", | ||
@@ -41,3 +41,2 @@ "citest": "npm run test" | ||
"send": "^0.16.1", | ||
"static-server": "^3.0.0", | ||
"terser": "^3.14.1" | ||
@@ -44,0 +43,0 @@ }, |
@@ -33,3 +33,3 @@ # 🎊 canvas confetti 🎊 | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.1.2/dist/confetti.browser.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.1.3/dist/confetti.browser.min.js"></script> | ||
``` | ||
@@ -36,0 +36,0 @@ |
@@ -152,3 +152,11 @@ (function main(global, module, isWorker, workerSize) { | ||
].join('\n'); | ||
worker = new Worker(URL.createObjectURL(new Blob([code]))); | ||
try { | ||
worker = new Worker(URL.createObjectURL(new Blob([code]))); | ||
} catch (e) { | ||
// eslint-disable-next-line no-console | ||
typeof console !== undefined && typeof console.warn === 'function' ? console.warn('🎊 Count not load worker', e) : null; | ||
return null; | ||
} | ||
decorate(worker); | ||
@@ -155,0 +163,0 @@ } |
Sorry, the diff of this file is not supported yet
57858
1.27%11
-8.33%1407
1.3%