From 622a6efc28fb22cea60c33d0d7fd42a0f2c9b4f6 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Mon, 5 Sep 2022 17:59:30 -0600 Subject: [PATCH] handle weird redirect event --- src/background/window.js | 1 + src/components/contracts/ContractGrid.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/background/window.js b/src/background/window.js index 70d7f88..daeb23f 100644 --- a/src/background/window.js +++ b/src/background/window.js @@ -79,6 +79,7 @@ async function createWindow() { const handleRedirect = (e, url) => { try { + url = url || e.url; if (url.startsWith('http') && url !== mainWindow.webContents.getURL()) { shell.openExternal(url); diff --git a/src/components/contracts/ContractGrid.vue b/src/components/contracts/ContractGrid.vue index 490378d..d31d35d 100644 --- a/src/components/contracts/ContractGrid.vue +++ b/src/components/contracts/ContractGrid.vue @@ -39,7 +39,7 @@
{{ tag.text }}
- SiaStats + SiaStats