Skip to content

Commit

Permalink
remove warning when s is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mazunki authored and KevinRoebert committed May 29, 2024
1 parent 92e43b7 commit 897c7dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core_js/google_link_fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {" +
Expand Down

0 comments on commit 897c7dc

Please sign in to comment.