mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Skip the service worker for Electron
At the moment, there's no point in installing the empty service worker on Electron. Fixes https://github.com/vector-im/element-web/issues/16008
This commit is contained in:
parent
0e14dc06fb
commit
87e67d8168
@ -30,7 +30,7 @@ import {parseQsFromFragment} from "./url_utils";
|
||||
import './modernizr';
|
||||
|
||||
// load service worker if available on this platform
|
||||
if ('serviceWorker' in navigator) {
|
||||
if (!window.electron && 'serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('sw.js');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user