diff options
author | Aylur <[email protected]> | 2024-05-25 15:34:30 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-05-25 15:34:30 +0200 |
commit | 24322cb85c337bd70b36452c1b4d92a5b7b4caf4 (patch) | |
tree | 0879fbad438ddcbf9bc51edf5c174c05dc49fc84 | |
parent | da135bbfecbd69cc52700391ddb9178fa4d856b1 (diff) |
rename runJS to eval
-rw-r--r-- | gjs/src/application.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gjs/src/application.ts b/gjs/src/application.ts index cadbaf0..b98b831 100644 --- a/gjs/src/application.ts +++ b/gjs/src/application.ts @@ -22,7 +22,7 @@ import { exit, programArgs } from "system" class AstalJS extends Astal.Application { static { GObject.registerClass(this) } - runJS(body: string): Promise<any> { + eval(body: string): Promise<any> { return new Promise((res, rej) => { try { const fn = Function(`return (async function() { |