remove warning when s is undefined

This commit is contained in:
Mazunki Hoksaas
2024-05-11 10:32:17 +02:00
committed by Kevin R
parent 92e43b7f61
commit 897c7dc67b

View File

@@ -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', {" +