How to quit in web page?


#1

I want to quit my App by button element of web page.
how can i use electron object in web javascript?


#2
$(document).ready(function(){
  electron = require('electron')
  $("#btnQuit").on("click",function(){
    electron.remote.app.quit()
  })  
})

I solved my problem. but i think that My code is not good.
if you get a good idea. please give ma a tip