The URI of TUHH Docker Registry changed from "docker.rz.tu-harburg.de:5000" to "docker.rz.tu-harburg.de". Please update your gitlab-ci.yml files if you use images from this registry.

Commit fa1ad66a authored by Tobias Zeumer's avatar Tobias Zeumer

Minor syntax change in pwa-app.js

parent 5d69a720
......@@ -9,7 +9,8 @@ if ('serviceWorker' in navigator) {
* You can call register() every time a page loads without concern;
* the browser will figure out if the service worker is already registered or not and handle it accordingly.
*/
navigator.serviceWorker.register('./pwa-serviceWorker.js', {scope : "./"} ).then(function(registration) {
// scope unecessary, but if scope changes then like: navigator.serviceWorker.register('./pwa-serviceWorker.js', {scope : "./"} ).then(function(registration) {
navigator.serviceWorker.register('./pwa-serviceWorker.js').then(function(registration) {
// everything is ok
console.log('ServiceWorker sucessfully registered, scope: ', registration.scope);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment