mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
mix hub
This commit is contained in:
commit
a9613e8e44
@ -25,7 +25,7 @@ Volcanos("base", {help: "基础模块",
|
|||||||
return parseInt(size / 1000000) + "." + parseInt(size / 10000 % 100) + "M"
|
return parseInt(size / 1000000) + "." + parseInt(size / 10000 % 100) + "M"
|
||||||
}
|
}
|
||||||
if (size > 1000) {
|
if (size > 1000) {
|
||||||
return parseInt(size / 1000) + "." + parseInt(size / 10 % 100) + "M"
|
return parseInt(size / 1000) + "." + parseInt(size / 10 % 100) + "K"
|
||||||
}
|
}
|
||||||
return size + "B"
|
return size + "B"
|
||||||
},
|
},
|
||||||
|
@ -116,7 +116,7 @@ var can = Volcanos("chrome", {
|
|||||||
message: message, title: title||Config.title, iconUrl: "/favicon.ico", type: "basic",
|
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(""))}
|
if (msg.Option("_handle")) {return can.user.toast(msg.result.join(""))}
|
||||||
|
|
||||||
can.user.toast(msg.detail.join(" "))
|
can.user.toast(msg.detail.join(" "))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user