Skip to content

Commit a931d8e

Browse files
committed
Update searchJumper.user.js
1 parent 75f3ba5 commit a931d8e

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

searchJumper.user.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,24 +1315,13 @@
13151315
});
13161316
break;
13171317
} catch (e) {
1318-
try {
1319-
escapeHTMLPolicy = _unsafeWindow.trustedTypes.policies.get(name);
1320-
if (escapeHTMLPolicy) {
1321-
break;
1322-
}
1323-
} catch (e2) {
1324-
console.warn(`create '${name}' failed`);
1325-
}
1318+
console.warn(`create '${name}' failed`);
1319+
return;
13261320
}
13271321
}
13281322
}
13291323
}
13301324

1331-
1332-
1333-
1334-
1335-
13361325
var escapeHTMLPolicy;
13371326
const AsyncFunction = Object.getPrototypeOf(async function(){}).constructor;
13381327

0 commit comments

Comments
 (0)