Frank N
Frank N

Reputation: 10396

How to access `process` throughout an electron app?

I have no problem to access various process.* properties in my renderer/index.html, but I cannot even get them in the directly referenced index.js, not to mention App.vue... what is wrong here?

enter image description here

Also with a huge delay (in case, process depends on some onLoad()-ish things), all I get is undefined. I am using parcel as a bundler.

Upvotes: 1

Views: 393

Answers (1)

Frank N
Frank N

Reputation: 10396

Now, that was easy. m)

console.warn( window.process.versions.node )

setTimeout(function(){
    console.warn( window.process.versions.node )
 }, 500);

Upvotes: 1

Related Questions