lint fixes
This commit is contained in:
parent
c02f0b3b33
commit
6015254e59
71 changed files with 160 additions and 160 deletions
|
|
@ -125,8 +125,8 @@ function syncBetweenTabs() {
|
|||
|
||||
window.setInterval(syncBetweenTabs, 5000);
|
||||
|
||||
document.addEventListener('visibilitychange', () => {
|
||||
if (document.visibilityState === 'visible') {
|
||||
window.document.addEventListener('visibilitychange', () => {
|
||||
if (window.document.visibilityState === 'visible') {
|
||||
syncBetweenTabs();
|
||||
}
|
||||
});
|
||||
|
|
@ -136,7 +136,7 @@ let latestBackupAt = 0;
|
|||
window.setInterval(() => {
|
||||
if ($i == null) return;
|
||||
if (!store.s.enablePreferencesAutoCloudBackup) return;
|
||||
if (document.visibilityState !== 'visible') return; // 同期されていない古い値がバックアップされるのを防ぐ
|
||||
if (window.document.visibilityState !== 'visible') return; // 同期されていない古い値がバックアップされるのを防ぐ
|
||||
if (prefer.profile.modifiedAt <= latestBackupAt) return;
|
||||
|
||||
cloudBackup().then(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue