jglowa commited on
Commit
6436714
·
verified ·
1 Parent(s): 8574ad7

Update public/script.js

Browse files
Files changed (1) hide show
  1. public/script.js +2 -2
public/script.js CHANGED
@@ -1,4 +1,4 @@
1
- addEventListener('load', () => {
2
  const params = new URLSearchParams(location.search);
3
  if (params.has('q')) {
4
  new MutationObserver((mut, obs) => {
@@ -17,4 +17,4 @@ addEventListener('load', () => {
17
  }
18
  }).observe(document.getElementById('root'), {childList: true, subtree: true});
19
  }
20
- });
 
1
+ (function () {
2
  const params = new URLSearchParams(location.search);
3
  if (params.has('q')) {
4
  new MutationObserver((mut, obs) => {
 
17
  }
18
  }).observe(document.getElementById('root'), {childList: true, subtree: true});
19
  }
20
+ })();