Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maskaravivek/02920f23b7727d934772c865a54e9c44 to your computer and use it in GitHub Desktop.
Save maskaravivek/02920f23b7727d934772c865a54e9c44 to your computer and use it in GitHub Desktop.
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