From 218e638f8869419264af07e24c002a521650abda Mon Sep 17 00:00:00 2001 From: Rene Kaufmann Date: Mon, 19 Nov 2018 18:15:25 +0100 Subject: [PATCH] fix: lowercase BaseURL [filebrowser/filebrowser#522] (#40) --- build/service-worker-prod.js | 2 +- build/webpack.prod.conf.js | 2 +- index.html | 16 ++++++++-------- static/manifest.json | 6 +++--- static/share/404.html | 12 ++++++------ static/share/index.html | 12 ++++++------ 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/build/service-worker-prod.js b/build/service-worker-prod.js index 8b8493e6..338b15dd 100644 --- a/build/service-worker-prod.js +++ b/build/service-worker-prod.js @@ -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() { diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index 9751b880..76a1106d 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -119,7 +119,7 @@ var webpackConfig = merge(baseWebpackConfig, { new SWPrecacheWebpackPlugin({ cacheId: 'File Browser', filename: 'sw.js', - replacePrefix: '{{ .BaseURL }}/', + replacePrefix: '{{ .baseurl }}/', staticFileGlobs: ['dist/**/*.{js,html,css}'], minify: true, stripPrefix: 'dist/' diff --git a/index.html b/index.html index cd8446db..c982ab20 100644 --- a/index.html +++ b/index.html @@ -6,29 +6,29 @@ - + File Browser - - - + + + - + - + - + @@ -40,7 +40,7 @@ <% for (var chunk of webpack.chunks) { for (var file of chunk.files) { if (file.match(/\.(js|css)$/)) { %> - <% }}} %> + <% }}} %>