safer navigator.pop

This commit is contained in:
rustdesk committed 2022-01-29 15:55:00 +08:00
1 parent b24c997a20
commit eebb7e1f4c
6 files changed
+5 -11

No files matched your search

+1 -5
View File
@@ -6,11 +6,7 @@ class PlatformFFI {
static void clearRgbaFrame() {}
static Uint8List getRgba() {
var data = js.context.callMethod('getRgba');
if (data != null) {
return Uint8List.sublistView(data);
}
return null;
return js.context.callMethod('getRgba');
}
static Future<String> getVersion() async {