mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 01:26:16 -08:00
Update index.js
This commit is contained in:
1 parent
0335c678d5
commit
bbe0923064
1 file changed
+4
@@ -2,6 +2,10 @@ import blurImageUrl from 'blur-image-url';
|
||||
|
||||
function artplayerPluginBlur(art) {
|
||||
const { errorHandle, clamp } = art.constructor.utils;
|
||||
errorHandle(
|
||||
Object.prototype.hasOwnProperty.call(CanvasRenderingContext2D.prototype, 'filter'),
|
||||
'Your browser does not support canvas blur',
|
||||
);
|
||||
const { player } = art;
|
||||
let blurUrlCache = '';
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user