Make Mattermost client work
This commit is contained in:
parent
0abf043652
commit
04992d99cf
@ -28,6 +28,9 @@ let consoleLogger = new ConsoleLogger((level, message) => {
|
|||||||
|
|
||||||
let loadedModules = new Map<string, any>();
|
let loadedModules = new Map<string, any>();
|
||||||
|
|
||||||
|
// HACK to make Mattermost client work...
|
||||||
|
loadedModules.set("form-data", require(`${nodeModulesPath}/form-data`));
|
||||||
|
|
||||||
let vm = new VM({
|
let vm = new VM({
|
||||||
sandbox: {
|
sandbox: {
|
||||||
// Exposing some "safe" APIs
|
// Exposing some "safe" APIs
|
||||||
|
Loading…
Reference in New Issue
Block a user