diff --git a/manifest.json b/manifest.json index dd21d26..77ecc75 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "share-to-notionnext", "name": "Share to NotionNext", - "version": "0.2.4", + "version": "0.2.5", "minAppVersion": "0.0.1", "description": "Shares obsidian md file to notion with notion api for NotionNext web deploy, originally created by EasyChris/obsidian-to-notion.", "author": "EasyChris, jxpeng98", diff --git a/package.json b/package.json index c058dd4..39dde2d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "share-to-notionnext", - "version": "0.2.4", + "version": "0.2.5", "type": "module", "description": "Shares obsidian md file to notion with notion api for NotionNext web deploy, originally created by EasyChris/obsidian-to-notion.", "main": "main.js", diff --git a/src/main.ts b/src/main.ts index 0c69977..6910774 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,7 +26,7 @@ export default class ObsidianSyncNotionPlugin extends Plugin { async (evt: MouseEvent) => { // Called when the user clicks the icon. // await this.uploadCommand(); - this.commands.ribbonDisplay(); + await this.commands.ribbonDisplay(); } ); diff --git a/src/upload/uploadCommand.ts b/src/upload/uploadCommand.ts index 2f2b4c9..158399e 100644 --- a/src/upload/uploadCommand.ts +++ b/src/upload/uploadCommand.ts @@ -68,7 +68,7 @@ export async function uploadCommandGeneral( const {basename} = nowFile; const upload = new Upload2NotionGeneral(plugin); - const res = await upload.syncMarkdownToNotionGeneral(basename, cover, tags, markDownData, nowFile, this.app, this.settings); + const res = await upload.syncMarkdownToNotionGeneral(basename, cover, tags, markDownData, nowFile, this.app); if (res.status === 200) { new Notice(`${i18nConfig["sync-success"]}${basename}`);