Skip to content

Commit

Permalink
Merge pull request #832 from oduwsdl/issue-831
Browse files Browse the repository at this point in the history
Fix version reported of SW to UI
  • Loading branch information
machawk1 authored May 24, 2024
2 parents 2665275 + 3de623d commit 78f1c3a
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 78f1c3a

Please sign in to comment.