mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -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);
|
}, null);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function onmsg(msg) {
|
||||||
|
r.clip = null;
|
||||||
|
r.render();
|
||||||
|
if (msg == get_evpath())
|
||||||
|
treectl.goto(msg);
|
||||||
|
}
|
||||||
|
|
||||||
if (r.bus)
|
if (r.bus)
|
||||||
r.bus.onmessage = function (e) {
|
r.bus.onmessage = function (e) {
|
||||||
r.clip = null;
|
onmsg(e ? e.data : 1)
|
||||||
r.render();
|
|
||||||
var me = get_evpath();
|
|
||||||
if (e && e.data == me)
|
|
||||||
treectl.goto(e.data);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
r.tx = function (msg) {
|
r.tx = function (msg) {
|
||||||
if (!r.bus)
|
if (!r.bus)
|
||||||
return;
|
return onmsg(msg);
|
||||||
|
|
||||||
r.bus.postMessage(msg);
|
r.bus.postMessage(msg);
|
||||||
r.bus.onmessage();
|
r.bus.onmessage();
|
||||||
|
|
Loading…
Reference in a new issue