From 0673fce4ec21fcc677dbdfa713423d9647c74d76 Mon Sep 17 00:00:00 2001 From: Qing Date: Tue, 22 Nov 2022 22:12:32 +0800 Subject: [PATCH] fix setInterval in inactive tab https://stackoverflow.com/questions/5927284/how-can-i-make-setinterval-also-work-when-a-tab-is-inactive-in-chrome --- lama_cleaner/app/src/index.tsx | 1 + lama_cleaner/app/yarn.lock | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lama_cleaner/app/src/index.tsx b/lama_cleaner/app/src/index.tsx index b72a13e..9c01ee3 100644 --- a/lama_cleaner/app/src/index.tsx +++ b/lama_cleaner/app/src/index.tsx @@ -1,3 +1,4 @@ +import 'hacktimer' import React from 'react' import ReactDOM from 'react-dom' import './styles/_index.scss' diff --git a/lama_cleaner/app/yarn.lock b/lama_cleaner/app/yarn.lock index 2b3e340..43d595c 100644 --- a/lama_cleaner/app/yarn.lock +++ b/lama_cleaner/app/yarn.lock @@ -6332,6 +6332,11 @@ gzip-size@5.1.1: duplexer "^0.1.1" pify "^4.0.1" +hacktimer@^1.1.3: + version "1.1.3" + resolved "https://registry.npmmirror.com/hacktimer/-/hacktimer-1.1.3.tgz#401116d87f98ecb7972ed58dfe82168151a9b9f8" + integrity sha512-c30KGPo2a5DV2g+XYU4mW5XnXzsneyEF7AwIoWleR7FqsckPKWbmIKuvG7uWjpY9s1tkMd2/aGCGgf+BqqTykw== + hamt_plus@1.0.2: version "1.0.2" resolved "https://registry.npmmirror.com/hamt_plus/-/hamt_plus-1.0.2.tgz#e21c252968c7e33b20f6a1b094cd85787a265601"