mirror of
https://github.com/jxpeng98/obsidian-to-NotionNext
synced 2026-07-31 10:08:34 +08:00
Added auto copy share link to clipboard
This commit is contained in:
@@ -93,7 +93,7 @@ export class Upload2Notion {
|
||||
}
|
||||
console.log(res,'===')
|
||||
if (res.status === 200) {
|
||||
this.updateYamlInfo(markdown, fullPath, res)
|
||||
await this.updateYamlInfo(markdown, fullPath, res)
|
||||
}
|
||||
return res
|
||||
}
|
||||
@@ -102,6 +102,7 @@ export class Upload2Notion {
|
||||
const yamlObj:any = yamlFrontMatter.loadFront(yamlContent);
|
||||
const {url, id} = res.json
|
||||
yamlObj.link = url;
|
||||
await navigator.clipboard.writeText(url)
|
||||
yamlObj.notionID = id;
|
||||
const __content = yamlObj.__content;
|
||||
delete yamlObj.__content
|
||||
|
||||
Reference in New Issue
Block a user