diff --git a/gui/preload-main.js b/gui/preload-main.js index f3c78b27..f1e66f10 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..f90043db 100644 --- a/gui/src/index.html +++ b/gui/src/index.html @@ -44,6 +44,7 @@