Started seperating the main.go package into multiple packages
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package main
|
package settings
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/anacrolix/dht"
|
"github.com/anacrolix/dht"
|
@@ -41,12 +41,12 @@ ws.onmessage = function (evt) { //When we recieve a message from the websocket
|
|||||||
BytesCompleted: clientUpdate.data[i].BytesCompleted,
|
BytesCompleted: clientUpdate.data[i].BytesCompleted,
|
||||||
ActivePeers: clientUpdate.data[i].ActivePeers,
|
ActivePeers: clientUpdate.data[i].ActivePeers,
|
||||||
ETA: clientUpdate.data[i].ETA,
|
ETA: clientUpdate.data[i].ETA,
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
var newTitle = '(' + clientUpdate.total + ')' + title; //updating the title
|
var newTitle = '(' + clientUpdate.total + ')' + title; //updating the title
|
||||||
document.title = newTitle;
|
document.title = newTitle;
|
||||||
|
} else if (clientUpdate) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user