Skip to content

Commit

Permalink
6.24 fixed #19
Browse files Browse the repository at this point in the history
  • Loading branch information
ltxhhz committed Jun 24, 2024
1 parent 0d37d98 commit 95c1d72
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"description": "插件列表查看·安装·更新",
"icon": "assets/icon.svg",
"thumb": "assets/icon.svg",
"version": "1.3.0",
"version": "1.3.1",
"authors": [
{
"name": "ltxhhz",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "list-viewer",
"version": "1.3.0",
"version": "1.3.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ function createItemComponent(innerHtml: string, showInstallDialog: () => Promise
}

connectedCallback() {
config.debug && console.log('组件创建', this)
if (this.#initialized) return
this.titleEl = this.shadowRoot!.querySelector('.title')!
this.descriptionEl = this.shadowRoot!.querySelector('.description')!
this.versionEl = this.shadowRoot!.querySelector('.version')!
Expand Down Expand Up @@ -402,6 +404,7 @@ function createItemComponent(innerHtml: string, showInstallDialog: () => Promise
}

attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null) {
config.debug && console.log('attributeChangedCallback', name, newValue)
this.#initPromise.then(() => {
try {
switch (name) {
Expand Down

0 comments on commit 95c1d72

Please sign in to comment.