update view counter with websockets
This commit is contained in:
@@ -139,11 +139,6 @@ Viewer.prototype.setFile = function(file) {
|
||||
}
|
||||
|
||||
this.viewerScript.render(this.divFilepreview)
|
||||
|
||||
// let ws = new WebSocket("ws://127.0.0.1:8080/api/file/"+file.id+"/stats")
|
||||
// ws.onmessage = (msg) => {
|
||||
// console.log(msg)
|
||||
// }
|
||||
}
|
||||
|
||||
Viewer.prototype.renderSponsors = function() {
|
||||
@@ -248,9 +243,6 @@ function fileFromAPIResp(resp) {
|
||||
resp.description = ""
|
||||
}
|
||||
|
||||
console.debug("New file:")
|
||||
console.debug(resp)
|
||||
|
||||
return resp
|
||||
}
|
||||
function fileFromSkyNet(resp) {
|
||||
|
Reference in New Issue
Block a user