diff --git a/tailscalectl/lib.js b/tailscalectl/lib.js index b27a4c3..0f93d3d 100644 --- a/tailscalectl/lib.js +++ b/tailscalectl/lib.js @@ -24,8 +24,7 @@ function makeExitNodeCommand(hostname) { function findActiveExitNode(peerMap) { if (!peerMap) { return ""; } - for (const key in peerMap) { - if (!Object.prototype.hasOwnProperty.call(peerMap, key)) { continue; } + for (const key of Object.keys(peerMap)) { const p = peerMap[key]; if (p.ExitNode) { return p.HostName || key; diff --git a/tailscalectl/plugin.json b/tailscalectl/plugin.json index 6f9c82f..5b8ece6 100644 --- a/tailscalectl/plugin.json +++ b/tailscalectl/plugin.json @@ -2,7 +2,6 @@ "id": "tailscalectl", "name": "Tailscale", "description": "Tailscale status and controls on the Dank Bar", - "version": "0.1.0", "author": "John Morris", "icon": "vpn_key", "type": "widget",