Skip to content

Commit

Permalink
Attempt to fix UWP app failure to open new windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Feb 1, 2024
1 parent e1ccb8a commit 51435c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,8 @@ document.getElementById('displayHiddenBlockElementsCheck').addEventListener('cli
*/
function removePageMaxWidth () {
if (!appstate.wikimediaZimLoaded) return;
// Note that the UWP app has no access to the content of opened windows, so we can't access the DOM of the articleWindow
if (/UWP/.test(params.appType) && appstate.target !== 'iframe') return;
var zimType;
var cssSource;
var contentElement;
Expand Down

0 comments on commit 51435c6

Please sign in to comment.