From 3fbecdf56739f7d9d24f20bb932b3b22bd1c2718 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Sun, 8 May 2022 00:02:34 +0900 Subject: [PATCH] Fixed: - Newly created files could not be synchronized. --- manifest.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/main.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manifest.json b/manifest.json index b650fdc..8dd712a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-livesync", "name": "Self-hosted LiveSync", - "version": "0.8.6", + "version": "0.8.7", "minAppVersion": "0.9.12", "description": "Community implementation of self-hosted livesync. Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.", "author": "vorotamoroz", diff --git a/package-lock.json b/package-lock.json index 8b421b3..d7276b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "obsidian-livesync", - "version": "0.8.6", + "version": "0.8.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "obsidian-livesync", - "version": "0.8.6", + "version": "0.8.7", "license": "MIT", "dependencies": { "diff-match-patch": "^1.0.5", diff --git a/package.json b/package.json index 4b796ba..63d280f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-livesync", - "version": "0.8.6", + "version": "0.8.7", "description": "Reflect your vault changes to some other devices immediately. Please make sure to disable other synchronize solutions to avoid content corruption or duplication.", "main": "main.js", "type": "module", diff --git a/src/main.ts b/src/main.ts index 6cce4bc..7d6978b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -373,7 +373,7 @@ export default class ObsidianLiveSyncPlugin extends Plugin { this.registerEvent(this.app.vault.on("modify", this.watchVaultChange)); this.registerEvent(this.app.vault.on("delete", this.watchVaultDelete)); this.registerEvent(this.app.vault.on("rename", this.watchVaultRename)); - this.registerEvent(this.app.vault.on("create", this.watchVaultChange)); + this.registerEvent(this.app.vault.on("create", this.watchVaultCreate)); this.registerEvent(this.app.workspace.on("file-open", this.watchWorkspaceOpen)); window.addEventListener("visibilitychange", this.watchWindowVisiblity); }