Skip to content

Commit

Permalink
remove unused helper
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Nov 1, 2022
1 parent 65ee825 commit 7de569d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/scriptlets/trusted-replace-fetch-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
hit,
getFetchData,
objectToString,
noopPromiseResolve,
getWildcardSymbol,
matchRequestProps,
// following helpers should be imported and injected
Expand Down Expand Up @@ -81,8 +80,7 @@ export function trustedReplaceFetchResponse(source, pattern = '', replacement =
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
if (typeof fetch === 'undefined'
|| typeof Proxy === 'undefined'
|| typeof Response === 'undefined'
|| typeof Promise === 'undefined') {
|| typeof Response === 'undefined') {
return;
}

Expand Down Expand Up @@ -186,7 +184,6 @@ trustedReplaceFetchResponse.injections = [
hit,
getFetchData,
objectToString,
noopPromiseResolve,
getWildcardSymbol,
matchRequestProps,
toRegExp,
Expand Down

0 comments on commit 7de569d

Please sign in to comment.