fix for web

This commit is contained in:
rustdesk committed 2022-04-14 11:00:24 +08:00
1 parent d8c89ad621
commit 49c2bf9616
5 files changed
+22 -6

No files matched your search

+3 -1
View File
@@ -715,7 +715,9 @@ class FFI {
static List<Peer> peers() {
try {
List<dynamic> peers = json.decode(getByName('peers'));
var str = getByName('peers');
if (str == "") return [];
List<dynamic> peers = json.decode(str);
return peers
.map((s) => s as List<dynamic>)
.map((s) =>