Skip to content

Commit

Permalink
feat: new throughput chart in browZer tools (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Jul 12, 2024
1 parent 69d9a17 commit 8e45448
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/ZitiFirstStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1190,14 +1190,6 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ {
.attr('src', `${keycloakJs}`);
}

let erudaElement = $('<script></script> ')
if (self._zitiBrowzerServiceWorkerGlobalScope._zitiConfig.eruda) {
erudaElement = $('<script></script> ')
.attr('id', 'ziti-browzer-eruda')
.attr('type', 'text/javascript')
.attr('src', `${erudaJs}`);
}

// Locate the CSP
let cspElement = $('meta[http-equiv="content-security-policy"]');

Expand All @@ -1221,10 +1213,6 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ {
cspElement.after(kcElement);
}

if (self._zitiBrowzerServiceWorkerGlobalScope._zitiConfig.eruda) {
cspElement.after(erudaElement);
}

let otEl = $('meta[id="ziti-browzer-origin-trial"]');
// Inject the ZBR immediately after the origin trial meta
otEl.after(zbrElement);
Expand Down Expand Up @@ -1252,10 +1240,6 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ {
headElement.prepend(kcElement);
}

if (self._zitiBrowzerServiceWorkerGlobalScope._zitiConfig.eruda) {
headElement.prepend(erudaElement);
}

buffer += $.html();
}
} else {
Expand Down

0 comments on commit 8e45448

Please sign in to comment.