Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Commit d3aebc4

Browse files
committed
Make manual sync public
* This shouldn't be private...
1 parent 0e7221a commit d3aebc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class AzureBlobSync extends Plugin {
4747
await this.#syncService.uploadAllFilesInVault();
4848
await this.#syncService.downloadAllFilesInContainer();
4949

50-
this.#syncInterval = window.setInterval(this.#manualSync, this.settings.periodicSyncInterval * 1000 * 60);
50+
this.#syncInterval = window.setInterval(this.manualSync, this.settings.periodicSyncInterval * 1000 * 60);
5151

5252
this.registerInterval(this.#syncInterval);
5353
}
@@ -62,12 +62,12 @@ export default class AzureBlobSync extends Plugin {
6262
this.registerEvent(this.app.vault.on('rename', this.#vaultRenameEventHandler.bind(this)));
6363
this.registerEvent(this.app.vault.on('modify', this.#vaultModifyEventHandler.bind(this)));
6464
this.registerEvent(this.app.vault.on('create', this.#vaultCreateEventHandler.bind(this)));
65-
this.addRibbonIcon('refresh-cw', 'Force Sync With Azure Blob Storage', this.#manualSync.bind(this));
65+
this.addRibbonIcon('refresh-cw', 'Force Sync With Azure Blob Storage', this.manualSync.bind(this));
6666

6767
this.addCommand({
6868
id: 'sync',
6969
name: 'Force Sync With Azure Blob Storage',
70-
callback: this.#manualSync.bind(this),
70+
callback: this.manualSync.bind(this),
7171
});
7272

7373
this.addCommand({
@@ -83,7 +83,7 @@ export default class AzureBlobSync extends Plugin {
8383
});
8484
}
8585

86-
async #manualSync() {
86+
async manualSync() {
8787
await this.#syncService.uploadAllFilesInVault();
8888
await this.#syncService.downloadAllFilesInContainer();
8989
}

0 commit comments

Comments
 (0)