summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstrap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.js b/bootstrap.js
index 2e8e5e0..df455b6 100644
--- a/bootstrap.js
+++ b/bootstrap.js
@@ -220,7 +220,7 @@ var httpObserver = {
let newListener = new tracingListener();
newListener.site = "gitlabjs";
newListener.originalListener = subject.setNewListener(newListener);
- } else if (subject.URI.path.indexOf("/socket-worker-") == 0) {
+ } else if (subject.URI.path.indexOf("/socket-worker-") != -1) {
let csp = subject.getResponseHeader("Content-Security-Policy");
csp = csp.replace(/worker-src /g, "worker-src github.githubassets.com ");
subject.setResponseHeader("Content-Security-Policy", csp, false);