Skip to content

Commit 7c25fac

Browse files
f
1 parent fe0fc00 commit 7c25fac

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/Tray.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1683,14 +1683,18 @@ class NetworkTray extends Tray {
16831683
this.downloadData()
16841684
.then(downloaded => {
16851685
// Update the current tray with the downloaded data
1686-
Object.assign(this, downloaded);
1687-
this.updateAppearance();
1688-
this.updateNetworkInfo();
1686+
let parent = this.element.parentElement.__trayInstance
1687+
this.deleteTray();
1688+
parent.appendChild(downloaded)
1689+
1690+
// Object.assign(this, downloaded);
1691+
// this.updateAppearance();
1692+
// this.updateNetworkInfo();
16891693
// If there are children, recursively update them
1690-
this.children.forEach((child, index) => {
1691-
Object.assign(child, downloaded.children[index]);
1692-
child.updateAppearance();
1693-
});
1694+
// this.children.forEach((child, index) => {
1695+
// Object.assign(child, downloaded.children[index]);
1696+
// child.updateAppearance();
1697+
// });
16941698
})
16951699
.catch(error => {
16961700
console.error('Download failed:', error);

0 commit comments

Comments
 (0)