mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
fix some
This commit is contained in:
parent
31a4563e5d
commit
8655ec1974
16
frame.js
16
frame.js
@ -59,14 +59,18 @@ Volcanos("onengine", { _init: function(can, meta, list, cb, target) {
|
||||
remote: function(event, can, msg, pane, cmds, cb) {
|
||||
if (can.onengine.engine(event, can, msg, pane, cmds, cb)) { return }
|
||||
|
||||
var res = Volcanos.meta.pack[pane._name+","+cmds.join(",")]
|
||||
if (res) {
|
||||
res = can.request(event, res)
|
||||
delete(msg._event), delete(msg._can)
|
||||
return typeof cb == "function" && cb(res)
|
||||
if (location.protocol == "file:") {
|
||||
var res = Volcanos.meta.pack[pane._name+","+cmds.join(",")]
|
||||
if (res) {
|
||||
res = can.request(event, res)
|
||||
delete(msg._event), delete(msg._can)
|
||||
return typeof cb == "function" && cb(res)
|
||||
}
|
||||
|
||||
typeof cb == "function" && cb(msg)
|
||||
return
|
||||
}
|
||||
|
||||
if (location.protocol == "file:") { typeof cb == "function" && cb(msg); return }
|
||||
can.misc.Run(event, can, {names: pane._name}, cmds, function(msg) {
|
||||
delete(msg._event), delete(msg._can)
|
||||
Volcanos.meta.pack[pane._name+","+cmds.join(",")] = msg
|
||||
|
Loading…
x
Reference in New Issue
Block a user