mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 16:48:44 +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",
|
"name": "obsidian-douban-plugin",
|
||||||
"version": "1.7.8",
|
"version": "1.7.9",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -136,7 +136,7 @@ export default class FileHandler {
|
|||||||
const File = await vault.create(filePath, data);
|
const File = await vault.create(filePath, data);
|
||||||
// Create the file and open it in the active leaf
|
// Create the file and open it in the active leaf
|
||||||
if (showAfterCreate) {
|
if (showAfterCreate) {
|
||||||
const leaf = this._app.workspace.splitLeafOrActive();
|
const leaf = this._app.workspace.getRightLeaf(true);
|
||||||
await leaf.openFile(File);
|
await leaf.openFile(File);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@ -170,7 +170,7 @@ export default class FileHandler {
|
|||||||
|
|
||||||
// Create the file and open it in the active leaf
|
// Create the file and open it in the active leaf
|
||||||
if (showAfterSuccess) {
|
if (showAfterSuccess) {
|
||||||
const leaf = this._app.workspace.splitLeafOrActive();
|
const leaf = this._app.workspace.getRightLeaf(true);
|
||||||
await leaf.openFile(File);
|
await leaf.openFile(File);
|
||||||
}
|
}
|
||||||
return fileExists;
|
return fileExists;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user