From c7a7f5e39b7c80903f18da664f8466f3e82e3020 Mon Sep 17 00:00:00 2001 From: Robert Coleman Date: Mon, 20 Nov 2023 02:04:18 +1300 Subject: [PATCH] Handle peers without Tags If a peer doesn't have any tags the previous detection for Mullvad would fail and the extension would show an empty node list and crash instead. --- tailscale@joaophi.github.com/tailscale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailscale@joaophi.github.com/tailscale.js b/tailscale@joaophi.github.com/tailscale.js index a40ce51..c6dbbf3 100644 --- a/tailscale@joaophi.github.com/tailscale.js +++ b/tailscale@joaophi.github.com/tailscale.js @@ -138,7 +138,7 @@ export const Tailscale = GObject.registerClass( exit_node_option: peer.ExitNodeOption, online: peer.Online, ips: peer.TailscaleIPs, - mullvad: peer.Tags.includes("tag:mullvad-exit-node"), + mullvad: peer.Tags?.includes("tag:mullvad-exit-node") || false, })) .sort((a, b) => (b.exit_node - a.exit_node)