mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-05 01:28:46 +08:00
add variable: yearPublished
This commit is contained in:
parent
7471edea0f
commit
a00cdc59ed
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "obsidian-douban-plugin",
|
||||
"version": "1.7.8",
|
||||
"version": "1.7.9",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@ -136,7 +136,7 @@ export default class FileHandler {
|
||||
const File = await vault.create(filePath, data);
|
||||
// Create the file and open it in the active leaf
|
||||
if (showAfterCreate) {
|
||||
const leaf = this._app.workspace.splitLeafOrActive();
|
||||
const leaf = this._app.workspace.getRightLeaf(true);
|
||||
await leaf.openFile(File);
|
||||
}
|
||||
return true;
|
||||
@ -170,7 +170,7 @@ export default class FileHandler {
|
||||
|
||||
// Create the file and open it in the active leaf
|
||||
if (showAfterSuccess) {
|
||||
const leaf = this._app.workspace.splitLeafOrActive();
|
||||
const leaf = this._app.workspace.getRightLeaf(true);
|
||||
await leaf.openFile(File);
|
||||
}
|
||||
return fileExists;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user