responsible style in home page

This commit is contained in:
rustdesk
2022-01-31 16:22:05 +08:00
parent b4e27662ba
commit 98434eb11e
4 changed files with 97 additions and 54 deletions

View File

@@ -10,7 +10,7 @@ class PlatformFFI {
}
static Future<String> getVersion() async {
return '';
return getByName('version');
}
static String getByName(String name, [String arg = '']) {
@@ -23,6 +23,7 @@ class PlatformFFI {
static Future<Null> init() async {
isWeb = true;
isDesktop = !js.context.callMethod('isMobile');
js.context.callMethod('init');
}
}