Skip to content

Commit 3e2964e

Browse files
author
Avaer Kazmer
committed
Small sw.js proxy response typing cleanup
1 parent e274b53 commit 3e2964e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const _rewriteResExt = (url, originalUrl, headers, res) => {
108108
headers: res.headers,
109109
}));
110110
} else {
111-
return res;
111+
return Promise.resolve(res);
112112
}
113113
};
114114
const _resolveFollowUrl = u => fetch(_rewriteUrlToProxy(u), {

0 commit comments

Comments
 (0)