Compare commits
2 Commits
6c35320164
...
5a1cd5634a
| Author | SHA1 | Date | |
|---|---|---|---|
|
5a1cd5634a
|
|||
|
07d2677af1
|
@@ -137,8 +137,10 @@ class trdom_torrentcontrol extends EventTarget {
|
|||||||
break;
|
break;
|
||||||
case 'torrent-deleted':
|
case 'torrent-deleted':
|
||||||
this.#log(6, 'we be delet');
|
this.#log(6, 'we be delet');
|
||||||
this.#data = null;
|
if (this.exists) {
|
||||||
this.updateDOM();
|
delete this.#data.name;
|
||||||
|
this.updateDOM();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'torrent-updated':
|
case 'torrent-updated':
|
||||||
if (e.detail.torrentHash == this.#hash) {
|
if (e.detail.torrentHash == this.#hash) {
|
||||||
|
|||||||
@@ -273,8 +273,9 @@ class trserver extends EventTarget {
|
|||||||
|
|
||||||
getInstanceData() {
|
getInstanceData() {
|
||||||
return {
|
return {
|
||||||
'rpcurl': this.#rpcurl,
|
type: 'transmission',
|
||||||
'auth': this.#authHeader
|
rpcurl: this.#rpcurl,
|
||||||
|
auth: this.#authHeader
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user