I am trying to get the path for my app inside one of the HTML windows. I have the following code:
<script>
const { remote } = require('electron');
var path = require('path');
var appPath = path.dirname(remote.app.getPath('exe'));
console.log(appPath)
I don't understand how to define app inside the html views? This outputs the error of
Cannot read property of 'app' of undefined