Update index.js

This commit is contained in:
Harvey Zack committed 2019-05-09 18:31:20 +08:00
1 parent bbe0923064
commit 0eb028fbd4
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@ import blurImageUrl from 'blur-image-url';
function artplayerPluginBlur(art) {
const { errorHandle, clamp } = art.constructor.utils;
errorHandle(
Object.prototype.hasOwnProperty.call(CanvasRenderingContext2D.prototype, 'filter'),
CanvasRenderingContext2D && Object.prototype.hasOwnProperty.call(CanvasRenderingContext2D.prototype, 'filter'),
'Your browser does not support canvas blur',
);
const { player } = art;