]> git.sesse.net Git - ultimatescore/commitdiff
Allow images to come from somewhere else than the filesystem.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 17 Mar 2018 00:01:36 +0000 (01:01 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 17 Mar 2018 00:01:36 +0000 (01:01 +0100)
quickl3.js

index 0ef871e86c54ff8aa879381112b590856d9cdb58..39f4fc61700527174d4ba2d7697a06037e338027 100644 (file)
@@ -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);