parent
95f1d4588c
commit
b90dd7cf7d
|
|
@ -7,8 +7,9 @@ export { setSyncing, callSyncing };
|
||||||
|
|
||||||
function setSyncing() {
|
function setSyncing() {
|
||||||
const syncPeriod = getPref("syncPeriodSeconds") as number;
|
const syncPeriod = getPref("syncPeriodSeconds") as number;
|
||||||
|
const enableHint = addon.data.env === "development";
|
||||||
if (syncPeriod > 0) {
|
if (syncPeriod > 0) {
|
||||||
showHint(`${getString("sync.start.hint")} ${syncPeriod} s`);
|
enableHint && showHint(`${getString("sync.start.hint")} ${syncPeriod} s`);
|
||||||
const timer = ztoolkit.getGlobal("setInterval")(
|
const timer = ztoolkit.getGlobal("setInterval")(
|
||||||
() => {
|
() => {
|
||||||
if (!addon.data.alive) {
|
if (!addon.data.alive) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue