fix: lowercase BaseURL [filebrowser/filebrowser#522] (#40)

This commit is contained in:
Rene Kaufmann
2018-11-19 18:15:25 +01:00
committed by 1138-4EB
parent cad2a989c1
commit 218e638f88
6 changed files with 25 additions and 25 deletions

View File

@@ -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() {

View File

@@ -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/'