mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix cut/paste on old chromes
This commit is contained in:
parent
3ef551f788
commit
7a06ff480d
|
@ -2027,18 +2027,21 @@ var fileman = (function () {
|
|||
}, null);
|
||||
};
|
||||
|
||||
function onmsg(msg) {
|
||||
r.clip = null;
|
||||
r.render();
|
||||
if (msg == get_evpath())
|
||||
treectl.goto(msg);
|
||||
}
|
||||
|
||||
if (r.bus)
|
||||
r.bus.onmessage = function (e) {
|
||||
r.clip = null;
|
||||
r.render();
|
||||
var me = get_evpath();
|
||||
if (e && e.data == me)
|
||||
treectl.goto(e.data);
|
||||
onmsg(e ? e.data : 1)
|
||||
};
|
||||
|
||||
r.tx = function (msg) {
|
||||
if (!r.bus)
|
||||
return;
|
||||
return onmsg(msg);
|
||||
|
||||
r.bus.postMessage(msg);
|
||||
r.bus.onmessage();
|
||||
|
|
Loading…
Reference in a new issue