From 7a4af4df4194958c70cfde80220db37d94f84f40 Mon Sep 17 00:00:00 2001 From: Bui Date: Fri, 30 Nov 2018 13:25:01 +0000 Subject: [PATCH] fix songbg on foreign asset origins fixes #84 --- public/src/js/loadsong.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/src/js/loadsong.js b/public/src/js/loadsong.js index d840b50..5b9e5c8 100644 --- a/public/src/js/loadsong.js +++ b/public/src/js/loadsong.js @@ -96,6 +96,7 @@ class loadSong{ for(var i = 0; i < 2; i++){ let filenameAb = filename + (i === 0 ? "a" : "b") let img = document.createElement("img") + img.crossOrigin = "Anonymous" promises.push(pageEvents.load(img).then(() => { return this.scaleImg(img, filenameAb) }))