Skip to content

Commit

Permalink
Merge pull request #423 from kiwix/fix-jquery-sw-modes-switch
Browse files Browse the repository at this point in the history
Fix broken ServiceWorker when switching between modes.
  • Loading branch information
mossroy authored Sep 22, 2018
2 parents 4814850 + 9bf2330 commit 971da81
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 @@ -311,6 +311,8 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies','abstractFiles
refreshAPIStatus();
});
} else {
// We need to set this variable earlier else the ServiceWorker does not get reactivated
contentInjectionMode = value;
initOrKeepAliveServiceWorker();
}
}
Expand Down

0 comments on commit 971da81

Please sign in to comment.