diff --git a/www/js/app.js b/www/js/app.js index 4122c9e4..4eb0fb70 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -2149,7 +2149,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett if (fileset.length) { setLocalArchiveFromFileList(fileset); } else { - console.error("The picked file could not be found in the selected folder!"); + console.error("The picked file could not be found in the selected folder!\n" + params.pickedFile); var archiveList = []; for (i = 0; i < files.length; i++) { if (/\.zima?a?$/i.test(files[i].name)) { diff --git a/www/js/init.js b/www/js/init.js index 30bd4828..e6a16f3a 100644 --- a/www/js/init.js +++ b/www/js/init.js @@ -167,9 +167,9 @@ if (!/^http/i.test(window.location.protocol) && params.localUWPSettings && params.localUWPSettings.PWA_launch = 'fail'; if (launchArguments && typeof Windows.Storage !== 'undefined') { // We have to ensure the PWA will have access to the file with which the app was launched - var futureAccessList = Windows.Storage.AccessCache.StorageApplicationPermissions.futureAccessList; - futureAccessList.addOrReplace(params.falFileToken, launchArguments.files[0]); - if (futureAccessList.containsItem(params.falFolderToken)) futureAccessList.remove(params.falFolderToken); + var fal = Windows.Storage.AccessCache.StorageApplicationPermissions.futureAccessList; + fal.addOrReplace(params.falFileToken, launchArguments.files[0]); + if (fal.containsItem(params.falFolderToken)) fal.remove(params.falFolderToken); uriParams += '&lastSelectedArchive=' + encodeURIComponent(launchArguments.files[0].name); } window.location.href = params.PWAServer + 'www/index.html' + uriParams;