fix songbg on foreign asset origins

fixes #84
This commit is contained in:
Bui 2018-11-30 13:25:01 +00:00
parent a3f80cd4d3
commit 7a4af4df41

View File

@ -96,6 +96,7 @@ class loadSong{
for(var i = 0; i < 2; i++){ for(var i = 0; i < 2; i++){
let filenameAb = filename + (i === 0 ? "a" : "b") let filenameAb = filename + (i === 0 ? "a" : "b")
let img = document.createElement("img") let img = document.createElement("img")
img.crossOrigin = "Anonymous"
promises.push(pageEvents.load(img).then(() => { promises.push(pageEvents.load(img).then(() => {
return this.scaleImg(img, filenameAb) return this.scaleImg(img, filenameAb)
})) }))