Skip to content

Commit

Permalink
Use globalThis
Browse files Browse the repository at this point in the history
  • Loading branch information
k2tzumi committed Mar 5, 2023
1 parent 5d430e3 commit e665b91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/JobBroker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ class JobBroker<T extends Parameter> {
);

try {
const foo = window;
const result = foo.eval(parameter.handler)(
const result = globalThis[parameter.handler](
JSON.parse(parameter.parameter)
);
if (!result) {
Expand Down

0 comments on commit e665b91

Please # to comment.