improve by making bridge a getter

This commit is contained in:
Chayapak 2023-07-03 16:46:09 +07:00
parent 7b695c87c7
commit 4c50c129ec

View file

@ -42,7 +42,7 @@ io.on('connection', (socket) => {
vm = new VM({ vm = new VM({
timeout: 3000, timeout: 3000,
sandbox: { sandbox: {
bridge: () => proxy, get bridge () { return proxy },
randomstring, randomstring,
ChatMessage, ChatMessage,
mc, mc,