Skip to content

Commit

Permalink
Also invalidate folder when jumping to PWA
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Jul 21, 2023
1 parent d26fc61 commit 0e8595a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ if (!/^http/i.test(window.location.protocol) && params.localUWPSettings &&
var fal = Windows.Storage.AccessCache.StorageApplicationPermissions.futureAccessList;
fal.addOrReplace(params.falFileToken, launchArgumentsUWP.files[0]);
if (fal.containsItem(params.falFolderToken)) fal.remove(params.falFolderToken);
uriParams += '&lastSelectedArchive=' + encodeURIComponent(launchArgumentsUWP.files[0].name);
uriParams += '&lasSelectedArchivePath=&lastSelectedArchive=' + encodeURIComponent(launchArgumentsUWP.files[0].name);
}
window.location.href = params.PWAServer + 'www/index.html' + uriParams;
// This will trigger the error catching above, cleanly dematerialize this script and transport us swiftly to PWA land
Expand Down

0 comments on commit 0e8595a

Please sign in to comment.