On this page in the example code constants are defined with {}
https://github.com/electron/electron/blob/master/docs/api/net.md
const {app} = require('electron')
What does {name}
do compared to just name
?
Also, I tried the code above with jquery and I an error "cannot read property request of undefined".
jQuery(document).ready(function($){
const {net} = require('electron');
const request = net.request('https://github.com'); <- here