Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
www/js/loader: Account for MEDIA_URL in worker path
Browse files Browse the repository at this point in the history
  • Loading branch information
bakape committed Apr 27, 2016
1 parent 62cd138 commit b5c96d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions www/js/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ Selects and loads the client files
});

if ('serviceWorker' in navigator) {
navigator.serviceWorker.register("../worker.js").catch(function (err) {
throw err
})
navigator.serviceWorker
.register(imports.config.MEDIA_URL + "js/worker.js")
.catch(function (err) {
throw err
})
}
})();
File renamed without changes.

0 comments on commit b5c96d0

Please sign in to comment.