From: Steinar H. Gunderson Date: Sat, 17 Mar 2018 00:01:36 +0000 (+0100) Subject: Allow images to come from somewhere else than the filesystem. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2e037bc903343e79386ef12c1ca6e3034f04a24b;p=ultimatescore Allow images to come from somewhere else than the filesystem. --- diff --git a/quickl3.js b/quickl3.js index 0ef871e..39f4fc6 100644 --- a/quickl3.js +++ b/quickl3.js @@ -38,7 +38,7 @@ function load_l3(sheet, prefix, cb) }; let image = response.values[i][4]; if (image !== undefined && image.match(/^file:/) !== null) { - l3s[prefix + number].image = image; + l3s[prefix + number].image = image.match(/^file:(.*)/)[0]; } } cb(l3s, sheet);