mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
Merge branch 'globals' of https://github.com/MercuryWorkshop/scramjet into globals
This commit is contained in:
commit
3edabf149c
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ self.ScramjetServiceWorker = class ScramjetServiceWorker {
|
|||
switch (request.destination) {
|
||||
case "iframe":
|
||||
case "document":
|
||||
if (responseHeaders["content-type"].startsWith("text/html")) {
|
||||
if (responseHeaders["content-type"].toString().startsWith("text/html")) {
|
||||
responseBody = rewriteHtml(await response.text(), url);
|
||||
} else {
|
||||
responseBody = response.body;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue