Created
June 6, 2021 05:00
-
-
Save maskaravivek/02920f23b7727d934772c865a54e9c44 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 electron = require('electron') | |
const ipc = electron.ipcRenderer | |
window.addEventListener('DOMContentLoaded', () => { | |
document.getElementById('web_btn').addEventListener("click", function () { | |
let active_hotspot_id = localStorage.getItem('active_hotspot_id') | |
const reply = ipc.sendSync('hotspot-event', active_hotspot_id) | |
}); | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment