Skip to content

Commit 9e59a1b

Browse files
committed
fix: added falsy check
1 parent df12706 commit 9e59a1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/textures/ImageTexture.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class ImageTexture extends Texture {
135135
async loadImageFallback(src: string, hasAlpha: boolean) {
136136
const img = new Image();
137137

138-
if (!isBase64Image(src)) {
138+
if (isBase64Image(src) === false) {
139139
img.crossOrigin = 'anonymous';
140140
}
141141

@@ -206,7 +206,7 @@ export class ImageTexture extends Texture {
206206

207207
if (this.txManager.hasCreateImageBitmap === true) {
208208
if (
209-
!isBase64Image(src) &&
209+
isBase64Image(src) === false &&
210210
this.txManager.hasWorker === true &&
211211
this.txManager.imageWorkerManager !== null
212212
) {

0 commit comments

Comments
 (0)