mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-03 15:41:27 +03:00
more web api
This commit is contained in:
@@ -10,6 +10,10 @@ class PlatformFFI {
|
||||
// return Uint8List.sublistView(ref.data.asTypedList(ref.len));
|
||||
}
|
||||
|
||||
static Future<String> getVersion() async {
|
||||
return '';
|
||||
}
|
||||
|
||||
static String getByName(String name, [String arg = '']) {
|
||||
return js.context.callMethod('getByName', [name, arg]);
|
||||
}
|
||||
@@ -20,6 +24,7 @@ class PlatformFFI {
|
||||
|
||||
static Future<Null> init() async {
|
||||
isWeb = true;
|
||||
js.context.callMethod('init');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user