tianyunperfect 3 gadi atpakaļ
vecāks
revīzija
e3dcc8a2e6
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      tmp/monkey/web-history.js

+ 3 - 3
tmp/monkey/web-history.js

@@ -24,11 +24,11 @@
 
     setTimeout(() => {
         let t_href = "t_href"
-        localStorage.setItem(t_href, location.href);
+        localStorage.setItem(t_href, document.title);
         save();
         setInterval(() => {
-            if (localStorage.getItem(t_href) !== location.href) {
-                localStorage.setItem(t_href, location.href);
+            if (localStorage.getItem(t_href) !== document.title) {
+                localStorage.setItem(t_href, document.title);
                 save();
             }
         }, 5000)