Skip to content

Commit

Permalink
Prevent throw in UWP app
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Feb 1, 2024
1 parent 8155fc3 commit 758b551
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -5285,7 +5285,10 @@ function handleClickOnReplayLink (ev, anchor) {
// Conditional, because opening a new window can be blocked by the browser
if (articleWindow) {
appstate.target = 'window';
articleWindow.kiwixType = appstate.target;
// This throws in the UWP app
if (!/UWP/.test(params.appType)) {
articleWindow.kiwixType = appstate.target;
}
articleContainer = articleWindow;
}
uiUtil.clearSpinner();
Expand Down

0 comments on commit 758b551

Please sign in to comment.