mirror of
https://github.com/TangentFoxy/memex.git
synced 2024-11-22 04:54:23 +00:00
Add comments to preload.js.
This commit is contained in:
parent
8b0c2cc066
commit
c11eba11ee
@ -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;
|
window.nodeRequire = require;
|
||||||
delete window.require;
|
delete window.require;
|
||||||
delete window.exports;
|
delete window.exports;
|
||||||
delete window.module;
|
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;
|
window.showAdd = true;
|
Loading…
Reference in New Issue
Block a user