diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-08-06 18:26:11 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-08-06 22:32:44 -0700 |
commit | d6cde3066305358ad1b0f074eedc0b307774ce72 (patch) | |
tree | 4d4a48795898286e1e40bca47747ee0543dd3508 /src/library.js | |
parent | a7c0536ab3c599772f37a7a6d5d0d012f5eb4055 (diff) |
store preloaded images by their absolute path
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index f48220bb..a73d4dc9 100644 --- a/src/library.js +++ b/src/library.js @@ -874,7 +874,9 @@ LibraryManager.library = { // result of an XHR that you did manually. createPreloadedFile: function(parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile) { Browser.init(); - var fullname = FS.joinPath([parent, name], true); + // TODO we should allow people to just pass in a complete filename instead + // of parent and name being that we just join them anyways + var fullname = PATH.resolve(PATH.join(parent, name)); function processData(byteArray) { function finish(byteArray) { if (!dontCreateFile) { |