From 4988a92f52aea7e5ea25ed23b32d9f56f8f33cdd Mon Sep 17 00:00:00 2001 From: "awh@brainless.us" Date: Fri, 6 Jan 2023 23:27:52 -0500 Subject: [PATCH 1/2] Add an explorer button to the gui --- gui/preload-main.js | 7 ++++++- gui/src/index.html | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gui/preload-main.js b/gui/preload-main.js index d2a75bd2..dbcfb4e9 100644 --- a/gui/preload-main.js +++ b/gui/preload-main.js @@ -1,5 +1,5 @@ const path = require('path'); -const {ipcRenderer} = require('electron'); +const {ipcRenderer, shell} = require('electron'); const exec = require('child_process').spawn; const sock = require('./sock.js'); const daemon = require('./daemon.js'); @@ -1076,6 +1076,11 @@ document.getElementById('hamlib_rigctld_stop').addEventListener('click', () => { sock.stopBeacon(); }); + // Explorer button clicked + document.getElementById("openExplorer").addEventListener("click", () => { + shell.openExternal('https://explorer.freedata.app/?myCall=' + document.getElementById("myCall").value); + }); + // startTNC button clicked document.getElementById("startTNC").addEventListener("click", () => { diff --git a/gui/src/index.html b/gui/src/index.html index 4c18ac78..832e623f 100644 --- a/gui/src/index.html +++ b/gui/src/index.html @@ -44,6 +44,7 @@