fix: lowercase BaseURL [filebrowser/filebrowser#522] (#40)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
window.addEventListener('load', function() {
|
||||
if ('serviceWorker' in navigator &&
|
||||
(window.location.protocol === 'https:' || isLocalhost)) {
|
||||
navigator.serviceWorker.register('{{ .BaseURL }}/sw.js')
|
||||
navigator.serviceWorker.register('{{ .baseurl }}/sw.js')
|
||||
.then(function(registration) {
|
||||
// updatefound is fired if service-worker.js changes.
|
||||
registration.onupdatefound = function() {
|
||||
|
||||
Reference in New Issue
Block a user