mirror of
https://github.com/flozz/StackBlur.git
synced 2026-01-25 14:27:48 +00:00
Update stackblur.js
delete all mark.
This commit is contained in:
parent
5683b5bf3b
commit
80c052c526
@ -95,8 +95,7 @@ function processImage (
|
||||
if (typeof img === 'string') {
|
||||
img = document.getElementById(img);
|
||||
}
|
||||
|
||||
// FIXED: JC change condition
|
||||
|
||||
if (!img || (Object.prototype.toString.call(img).slice(8, -1) === 'HTMLImageElement' && !('naturalWidth' in img))) {
|
||||
return;
|
||||
}
|
||||
@ -105,7 +104,7 @@ function processImage (
|
||||
const w = img[dimensionType + 'Width'];
|
||||
const h = img[dimensionType + 'Height'];
|
||||
|
||||
// FIXED: JC add ImageBitmap support,can blur texture source
|
||||
// add ImageBitmap support,can blur texture source
|
||||
if (Object.prototype.toString.call(img).slice(8, -1) === 'ImageBitmap') {
|
||||
w = img.width;
|
||||
h = img.height;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user