1
0

Make Mattermost client work

This commit is contained in:
Zef Hemel 2022-07-18 16:48:56 +02:00
parent 0abf043652
commit 04992d99cf

View File

@ -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