summaryrefslogtreecommitdiff
path: root/internal/ui/static/js/bootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ui/static/js/bootstrap.js')
-rw-r--r--internal/ui/static/js/bootstrap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/ui/static/js/bootstrap.js b/internal/ui/static/js/bootstrap.js
index c83704c3..44d6e716 100644
--- a/internal/ui/static/js/bootstrap.js
+++ b/internal/ui/static/js/bootstrap.js
@@ -129,7 +129,7 @@ document.addEventListener("DOMContentLoaded", () => {
if ("serviceWorker" in navigator) {
const scriptElement = document.getElementById("service-worker-script");
if (scriptElement) {
- navigator.serviceWorker.register(scriptElement.src);
+ navigator.serviceWorker.register(ttpolicy.createScriptURL(scriptElement.src));
}
}