We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed50b76 commit a6656a0Copy full SHA for a6656a0
scripts/backup/ext/pinterest-auto-save/content.js
@@ -18,8 +18,10 @@ saveAllBtn.onclick = async () => {
18
lastClickTime = Date.now();
19
if (intervalCheckClickTime) clearInterval(intervalCheckClickTime);
20
intervalCheckClickTime = setInterval(() => {
21
- if (Date.now() - lastClickTime > reloadIfNotClickIn) {
22
- // alert("reload");
+ const time = Date.now() - lastClickTime;
+ console.log(time);
23
+ if (time > reloadIfNotClickIn) {
24
+ clearInterval(intervalCheckClickTime);
25
location.reload();
26
}
27
}, 1000);
0 commit comments