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