mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-15 21:55:36 +07:00
remove warning when s is undefined
This commit is contained in:
@@ -27,6 +27,9 @@
|
||||
function injectFunction() {
|
||||
let ele = document.createElement('script');
|
||||
let s = document.getElementsByTagName('script')[0];
|
||||
if (s === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
ele.type = 'text/javascript';
|
||||
ele.textContent = "Object.defineProperty(window, 'rwt', {" +
|
||||
|
||||
Reference in New Issue
Block a user