You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Simple Webpage Accessor with Some Optional Features (SWASOF)
2
+
3
+
A brief explaination of each file's usage/effect
4
+
5
+
## extensions_conf (link)
6
+
Is a link to the location of extensions_conf app's private AppData subdirectory. Contains every extension's configuration file (eg. electronAPI.json). Contains also data.json
7
+
8
+
## extensions_data
9
+
Is a folder containing useful data for any extension. Not editable at runtime
10
+
11
+
## extensions_main
12
+
13
+
## extensions_preload
14
+
15
+
## lib
16
+
17
+
---------------
18
+
19
+
A brief explaination of each file's usage/effect
20
+
1
21
## config.json
2
-
when a script is mentioned in this file all the content of the parent context is passed as env to the script creator
@@ -82,7 +83,7 @@ async function createMainWindow()
82
83
try
83
84
{
84
85
constModuleClass=require(fullpath);
85
-
if(typeof(ModuleClass)!==typeof(function(){})){console.log(kleur.grey("Not loading "+ext+": not a module"));return};
86
+
if(typeof(ModuleClass)!==typeof(function(){})||Object.getPrototypeOf(ModuleClass)!==BaseModule){console.log(kleur.grey("Not loading "+ext+": not a module"));return};
86
87
constt=newModuleClass()
87
88
enabled_modules.push(t);
88
89
t.__start(mainWindow,mainTab);
@@ -92,6 +93,9 @@ async function createMainWindow()
0 commit comments