Skip to content

Commit

Permalink
Fix broken ServiceWorker when switching between modes.
Browse files Browse the repository at this point in the history
This should finally fix #145
  • Loading branch information
mossroy committed Sep 22, 2018
1 parent 7873b75 commit a3a61fe
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 @@ -316,6 +316,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 a3a61fe

Please sign in to comment.