Fox sorting and magnet links
Magnet button stays disabled
This commit is contained in:
@@ -16,6 +16,10 @@ class trtorrent extends EventTarget {
|
||||
nukeChildren(this.element.element_name);
|
||||
this.element.element_name.appendChild(document.createTextNode(this.name));
|
||||
}
|
||||
#magnetLink;
|
||||
get magnet() {
|
||||
return this.#magnetLink;
|
||||
}
|
||||
|
||||
#serverControls = {};
|
||||
addControl(srv, control) {
|
||||
@@ -61,9 +65,10 @@ class trtorrent extends EventTarget {
|
||||
}
|
||||
}
|
||||
|
||||
constructor(hash) {
|
||||
constructor(hash, magnet = null) {
|
||||
super();
|
||||
this.#hash = hash;
|
||||
this.#magnetLink = magnet;
|
||||
|
||||
// set up DOM structure
|
||||
let element_name = document.createElement('div');
|
||||
|
||||
Reference in New Issue
Block a user