2018-08-09 15:57:05 +00:00
|
|
|
// This formats 'require' for use in logic/add.js used for send-ing a method call to the electron app/
|
2018-08-08 16:32:54 +00:00
|
|
|
window.nodeRequire = require;
|
|
|
|
delete window.require;
|
|
|
|
delete window.exports;
|
2018-08-09 15:18:32 +00:00
|
|
|
delete window.module;
|
|
|
|
|
2018-08-09 15:57:05 +00:00
|
|
|
// This preload.js file is included by electron, but not loaded in the web version.
|
|
|
|
// Defining 'window.showAdd' to true tells the app to include the add entry
|
|
|
|
// menu button and functionality which is not currently supported in the web version.
|
2018-08-09 15:31:57 +00:00
|
|
|
window.showAdd = true;
|