From 3de623ddf76a28190a1764a84f7445ef137d5491 Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Fri, 24 May 2024 14:25:17 -0400 Subject: [PATCH] Fix version reported of SW to UI --- ipwb/assets/webui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }) }