Completely updated React, fixed #11, (hopefully)
This commit is contained in:
1
goTorrentWebUI/node_modules/react-scripts/template/src/App.test.js
generated
vendored
1
goTorrentWebUI/node_modules/react-scripts/template/src/App.test.js
generated
vendored
@@ -5,4 +5,5 @@ import App from './App';
|
||||
it('renders without crashing', () => {
|
||||
const div = document.createElement('div');
|
||||
ReactDOM.render(<App />, div);
|
||||
ReactDOM.unmountComponentAtNode(div);
|
||||
});
|
||||
|
9
goTorrentWebUI/node_modules/react-scripts/template/src/registerServiceWorker.js
generated
vendored
9
goTorrentWebUI/node_modules/react-scripts/template/src/registerServiceWorker.js
generated
vendored
@@ -35,6 +35,15 @@ export default function register() {
|
||||
if (isLocalhost) {
|
||||
// This is running on localhost. Lets check if a service worker still exists or not.
|
||||
checkValidServiceWorker(swUrl);
|
||||
|
||||
// Add some additional logging to localhost, pointing developers to the
|
||||
// service worker/PWA documentation.
|
||||
navigator.serviceWorker.ready.then(() => {
|
||||
console.log(
|
||||
'This web app is being served cache-first by a service ' +
|
||||
'worker. To learn more, visit https://goo.gl/SC7cgQ'
|
||||
);
|
||||
});
|
||||
} else {
|
||||
// Is not local host. Just register service worker
|
||||
registerValidSW(swUrl);
|
||||
|
Reference in New Issue
Block a user