1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shylinux 2020-04-05 16:07:37 +08:00
commit a9613e8e44
2 changed files with 2 additions and 2 deletions

View File

@ -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"
},

View File

@ -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(" "))