Skip to content

Commit

Permalink
fix: reload
Browse files Browse the repository at this point in the history
  • Loading branch information
HomyeeKing committed Nov 6, 2021
1 parent 5216c7a commit ea9b98b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@ warnText.onclick = () => {
type: "pageReload",
url: store.url,
});
document.querySelector(".warn-text").style.display = 'none'
};
3 changes: 2 additions & 1 deletion store.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ const store = new Proxy(
document.querySelector("#current-url").textContent = newVal;
if (newVal !== target.pageUrl) {
document.querySelector(".warn-text").style.display = 'inline'
target.pageUrl = newVal
}
}

return Reflect.set(...arguments)
return Reflect.set(arguments)
},
}
);
Expand Down

0 comments on commit ea9b98b

Please sign in to comment.