-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
21 lines (18 loc) · 720 Bytes
/
main.js
File metadata and controls
21 lines (18 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
let TestPlugin = require('./TestPlugin/main').default;
// Return an array of plugin types that should be loaded and enabled.
// Add any scriptable plugins you want to load and enable to this array.
// This must be the last javascript code executed.
[
TestPlugin
]
/* Or you can load javascript plugins yourself like this */
/*
// Load the plugin and get a plugin context that
// can be used to interact with the plugin
let pluginContext = engine.loadPlugin(require('./TestPlugin/main').default);
// Unlike returning an array you will have to call
// enableAllPlugins to enable all loaded plugins
// or you can manually enable plugins by calling
// engine.enablePlugin(pluginContext);
engine.enableAllPlugins();
*/