How do I interact with jQuery in Electron?

0

I'm starting to try Electron, and I have a little big question about what it is to use my own functions and others ... I'm gradually transferring what I had already done for what would be the web version, therefore everything it was always working when you tried them on the localhost ...

Currently I have a test function in configs.js, which should call the js of sweetalert to show a message ... but when I run my Electron project, when I click the button on the console I get this:

Uncaught ReferenceError: en_proceso is not defined

(something that via web without problem works for me)

I leave here as a link my codes, so that this question is not so long

package.json:  https://pastebin.com/8LFN1d1E
main.js:       https://pastebin.com/HDhi2v0s
index.html:    https://pastebin.com/rKQ1gXkp
configs.js:    https://pastebin.com/zW1cHbLR
    
asked by KuroNeko 26.02.2018 в 04:05
source

1 answer

-1

Install jquery through npm install And in your main.js or as you have it

var $ = require 'jquery';
    
answered by 26.02.2018 в 05:24