diff --git a/ipwb/assets/webui.js b/ipwb/assets/webui.js index 75e6973e..0dfec66a 100644 --- a/ipwb/assets/webui.js +++ b/ipwb/assets/webui.js @@ -234,7 +234,7 @@ function injectIPWBJS () { // eslint-disable-line no-unused-vars function getServiceWorkerVersion () { return window.fetch(document.location.href) .then(function (resp) { - return Promise.resolve(resp.headers.get('Server').split('/')[1]) + return Promise.resolve(resp.headers.get('Server').split('/').at(-1)) }) }