From b1c045937bda136279ca6119be8e302e6051e0a4 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Wed, 27 Oct 2021 23:23:49 +0900 Subject: [PATCH] fixed #5 --- main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.ts b/main.ts index d41031f..033b3d8 100644 --- a/main.ts +++ b/main.ts @@ -1482,8 +1482,7 @@ export default class ObsidianLiveSyncPlugin extends Plugin { Logger(msg); await this.app.vault.trigger("modify", file); } - } - if (doc.datatype == "plain") { + } else if (doc.datatype == "plain") { if (!isValidPath(doc._id)) { Logger(`The file that having platform dependent name has been arrived. This file has skipped: ${doc._id}`, LOG_LEVEL.NOTICE); return;