2 ms·
At least in nw.js which is a similar toolkit to Electron: { "name": "helloworld", "main": "index.html" } And index.html is just whatever HTML web page you
by jancsika 9y ago
At least in nw.js which is a similar toolkit to Electron:
{
"name": "helloworld",
"main": "index.html"
}
And index.html is just whatever HTML web page you want, like "<html><herd><title>Hello World</title></herd><body>Hello World</body></html>". You could also use a javascript file as your "main" file if you want.
Even when you screw up the HTML it will still load, which won't happen if you get your underscores wrong in your example.
Edit: removed erroneous formatting
- kelnos 9y ago> Even when you screw up the HTML it will still load And this is why we have the wasteland of browser incompatibility that we're (still!) in. If something is wrong, it shoudn't work. Why are our standards so low that mistyping "head" as "herd" is considered something that heuristics should fix, rather than causing an error? I mean, really, though, any decent IDE should flag that error for you in-line, anyway.
- Rotareti 9y ago> Even when you screw up the HTML it will still load, which won't happen if you get your underscores wrong in your example. > Edit: removed erroneous formatting This is beautiful!
- aldarn 9y agoPlease tell me you're trolling... you actually want your software to run when there're errors and not have it blow up in your face? I don't even... ah screw it.