Skip to content

Commit

Permalink
ignore 'pagehide' events that contain '/#/' in the URL (e.g. Jellyfin)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect committed Oct 2, 2024
1 parent 6f362ff commit 0ee4c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ if (isUndefined(window.zitiBrowzerRuntime)) {
window.addEventListener(terminationEvent, (e) => {

// some web apps
if (!window.location.href.includes('#!')) {
if (!window.location.href.includes('#!') && !window.location.href.includes('/#/')) {
setTimeout(function() {
window.zitiBrowzerRuntime.logger.trace(`ZitiBrowzerRuntime page-terminationEvent setting window.location to: ${window.zitiBrowzerRuntime.zitiConfig.browzer.bootstrapper.target.path}`);
window.location = window.zitiBrowzerRuntime.zitiConfig.browzer.bootstrapper.target.path;
Expand Down

0 comments on commit 0ee4c14

Please sign in to comment.