aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/stopwatch.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/stopwatch.js')
-rw-r--r--web_src/js/features/stopwatch.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web_src/js/features/stopwatch.js b/web_src/js/features/stopwatch.js
index 61f19bd795..9352ef292d 100644
--- a/web_src/js/features/stopwatch.js
+++ b/web_src/js/features/stopwatch.js
@@ -55,6 +55,11 @@ export async function initStopwatch() {
});
worker.port.close();
window.location.href = AppSubUrl;
+ } else if (event.data.type === 'close') {
+ worker.port.postMessage({
+ type: 'close',
+ });
+ worker.port.close();
}
});
worker.port.addEventListener('error', (e) => {