making everything an arrow function

This commit is contained in:
2023-08-17 17:54:03 +02:00
parent ab482b38b2
commit bf2cb7713d
6 changed files with 110 additions and 118 deletions

View File

@ -21,9 +21,7 @@ const tryCatchWrapper = (
*/
return new Promise((resolve, _) => {
try {
Function(`with (this) {try{${code}} catch (e) {console.log(e)}};`).call(
application.api
);
Function(`"use strict";try{${code}} catch (e) {console.log(e)};`).call(application.api);
resolve(true);
} catch (error) {
console.log(error);