fix for web

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

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) =>