add variable: yearPublished

This commit is contained in:
Wanxp 2022-12-27 17:27:08 +08:00
parent 7471edea0f
commit a00cdc59ed
2 changed files with 3 additions and 3 deletions

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;