|
@@ -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)
|