Add comments to preload.js.

This commit is contained in:
kor 2018-08-10 03:57:05 +12:00
parent 8b0c2cc066
commit c11eba11ee

View File

@ -1,6 +1,10 @@
// This formats 'require' for use in logic/add.js used for send-ing a method call to the electron app/
window.nodeRequire = require;
delete window.require;
delete window.exports;
delete window.module;
// 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.
window.showAdd = true;