mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-30 16:41:00 +03:00
more api
This commit is contained in:
@@ -54,8 +54,9 @@ function jsonfyForDart(payload) {
|
||||
|
||||
export function pushEvent(name, payload) {
|
||||
if (!events) return;
|
||||
payload = jsonfyForDart(payload);
|
||||
payload.name = name;
|
||||
events.push(jsonfyForDart(payload));
|
||||
events.push(payload);
|
||||
}
|
||||
|
||||
export function draw(frame) {
|
||||
@@ -242,7 +243,7 @@ window.setByName = (name, value) => {
|
||||
localStorage.setItem(value.name, value.value);
|
||||
break;
|
||||
case 'peer_option':
|
||||
curConn.setPeerOption(value.name, value.value);
|
||||
curConn.setOption(value.name, value.value);
|
||||
break;
|
||||
case 'input_os_password':
|
||||
curConn.inputOsPassword(value, true);
|
||||
|
||||
Reference in New Issue
Block a user