Skip to content

Commit

Permalink
Fix version reported of SW to UI
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed May 24, 2024
1 parent 2665275 commit 3de623d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipwb/assets/webui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
}

Expand Down

0 comments on commit 3de623d

Please sign in to comment.