safer navigator.pop

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

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 {