Changeset 0.28.3.2 (#189)
This commit is contained in:
@@ -8,6 +8,7 @@ const vm = require('vm');
|
||||
*/
|
||||
function loadExtensions(overrides = {}) {
|
||||
const sandbox = createBrowserContext(overrides);
|
||||
loadSource(sandbox, 'sb.js');
|
||||
loadSource(sandbox, 'events.js');
|
||||
loadSource(sandbox, 'extensions.js');
|
||||
const ctx = vm.createContext(sandbox);
|
||||
|
||||
@@ -11,6 +11,7 @@ const vm = require('vm');
|
||||
*/
|
||||
function loadExtensions(overrides = {}) {
|
||||
const sandbox = createBrowserContext(overrides);
|
||||
loadSource(sandbox, 'sb.js');
|
||||
loadSource(sandbox, 'events.js');
|
||||
loadSource(sandbox, 'extensions.js');
|
||||
// Extract const globals from the vm context
|
||||
|
||||
@@ -116,6 +116,7 @@ function loadSource(sandbox, filename) {
|
||||
*/
|
||||
function loadAppModules(overrides = {}) {
|
||||
const sandbox = createBrowserContext(overrides);
|
||||
loadSource(sandbox, 'sb.js');
|
||||
loadSource(sandbox, 'app-state.js');
|
||||
loadSource(sandbox, 'api.js');
|
||||
loadSource(sandbox, 'app.js');
|
||||
|
||||
Reference in New Issue
Block a user