mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
fix upload size
This commit is contained in:
parent
e03f4144d5
commit
85d7ba9977
@ -25,7 +25,7 @@ Volcanos("base", {help: "基础模块",
|
||||
return parseInt(size / 1000000) + "." + parseInt(size / 10000 % 100) + "M"
|
||||
}
|
||||
if (size > 1000) {
|
||||
return parseInt(size / 1000) + "." + parseInt(size / 10 % 100) + "M"
|
||||
return parseInt(size / 1000) + "." + parseInt(size / 10 % 100) + "K"
|
||||
}
|
||||
return size + "B"
|
||||
},
|
||||
|
@ -116,7 +116,7 @@ var can = Volcanos("chrome", {
|
||||
message: message, title: title||Config.title, iconUrl: "/favicon.ico", type: "basic",
|
||||
})},
|
||||
|
||||
can.socket = can.socket || can.misc.WSS(can, "ws://localhost:9020/space/", {node: "chrome", name: chrome.runtime.id}, function(event, msg) {
|
||||
can.misc.WSS(can, "ws://localhost:9020/space/", {node: "chrome", name: chrome.runtime.id}, function(event, msg) {
|
||||
if (msg.Option("_handle")) {return can.user.toast(msg.result.join(""))}
|
||||
|
||||
can.user.toast(msg.detail.join(" "))
|
||||
|
Loading…
x
Reference in New Issue
Block a user