From 2e037bc903343e79386ef12c1ca6e3034f04a24b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 17 Mar 2018 01:01:36 +0100 Subject: [PATCH] Allow images to come from somewhere else than the filesystem. --- quickl3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2