Skip to content

Commit

Permalink
improve matching
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Feb 8, 2022
1 parent d861485 commit 1e1f8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scriptlets/prevent-element-src-loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export function preventElementSrcLoading(source, tagName, match) {
if (typeof Proxy === 'undefined' || typeof Reflect === 'undefined') {
return;
}
const searchRegexp = toRegExp(match);
const srcMockData = {
// "KCk9Pnt9" = "()=>{}"
script: 'data:text/javascript;base64,KCk9Pnt9',
Expand Down Expand Up @@ -62,6 +61,7 @@ export function preventElementSrcLoading(source, tagName, match) {
createScriptURL: (arg) => arg,
});
}
const searchRegexp = toRegExp(match);

const setAttributeWrapper = (target, thisArg, args) => {
// Check if arguments are present
Expand Down

0 comments on commit 1e1f8f4

Please sign in to comment.