mirror of
https://github.com/eondrcode/obsidian-manager.git
synced 2026-07-22 11:40:24 +00:00
fix: 修复插件市场按钮构建错误
This commit is contained in:
parent
65eeb64fd5
commit
c536ae308d
1 changed files with 7 additions and 7 deletions
|
|
@ -353,13 +353,13 @@ export class ManagerModal extends Modal {
|
|||
|
||||
private async openPluginMarket() {
|
||||
await this.appSetting.open();
|
||||
await this.appSetting.openTabById("community-plugins");
|
||||
window.setTimeout(() => {
|
||||
const tab = this.appSetting.activeTab;
|
||||
const marketButton = tab?.containerEl?.querySelector<HTMLButtonElement>("button.mod-cta");
|
||||
marketButton?.click();
|
||||
}, 50);
|
||||
}
|
||||
await this.appSetting.openTabById("community-plugins");
|
||||
window.setTimeout(() => {
|
||||
const tab = this.appSetting.activeTab;
|
||||
const marketButton = tab?.containerEl?.querySelector("button.mod-cta") as HTMLButtonElement | null | undefined;
|
||||
marketButton?.click();
|
||||
}, 50);
|
||||
}
|
||||
|
||||
private async runSinglePluginUpdateCheck(pluginId: string) {
|
||||
const progress = this.showInlineProgress(this.manager.translator.t("通知_检测更新中文案"), pluginId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue