mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-26 05:35:22 +02:00
Update preferences.ts
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
import { createVisibilityAwareInterval } from '@@/js/interval.js';
|
||||
import type { StorageProvider } from '@/preferences/manager.js';
|
||||
import { cloudBackup } from '@/preferences/utility.js';
|
||||
import { cloudBackup, cloudSync } from '@/preferences/utility.js';
|
||||
import { miLocalStorage } from '@/local-storage.js';
|
||||
import { isSameScope, PreferencesManager } from '@/preferences/manager.js';
|
||||
import { store } from '@/store.js';
|
||||
@@ -123,6 +123,11 @@ createVisibilityAwareInterval(() => {
|
||||
}, 1000 * 60 * 3);
|
||||
//#endregion
|
||||
|
||||
if (store.s.enablePreferencesAutoCloudSync) {
|
||||
// TODO: 前回同期してから10分以上経過している場合のみ
|
||||
cloudSync();
|
||||
}
|
||||
|
||||
if (_DEV_) {
|
||||
(window as any).prefer = prefer;
|
||||
(window as any).cloudBackup = cloudBackup;
|
||||
|
||||
Reference in New Issue
Block a user