Created
June 6, 2021 05:01
-
-
Save maskaravivek/473a933f11dc2c366f0fcdda577232b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ipcMain } = require('electron') | |
ipcMain.on('hotspot-event', (event, arg) => { | |
event.returnValue = 'Message received!' | |
require('electron').shell.openExternal(`https://explorer.helium.com/hotspots/${arg}`); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment