aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_browser.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library_browser.js b/src/library_browser.js
index 0b590342..57ca5a24 100644
--- a/src/library_browser.js
+++ b/src/library_browser.js
@@ -1182,6 +1182,8 @@ mergeInto(LibraryManager.library, {
path = Pointer_stringify(path);
}
+ path = PATH.resolve(path);
+
var canvas = Module["preloadedImages"][path];
if (canvas) {
var ctx = canvas.getContext("2d");