Thursday, 25 May 2017

How do I set Electron base directory for logging?

At the moment, all of the log messages for my application feature incredibly long location names, along the lines of C:\users\user\documents\github\project\app\page\index.html, is there a way to shorten these to the relative URL, like ./page/index.html, similar to the way Chrome does when on an actual webpage:

I attempted adding:

document.write("<base href='" + document.location.host + "' />")

To the top of my HTML file. This causes no visible change in the application.



via Popey Gilbert

No comments:

Post a Comment