From 24322cb85c337bd70b36452c1b4d92a5b7b4caf4 Mon Sep 17 00:00:00 2001 From: Aylur Date: Sat, 25 May 2024 15:34:30 +0200 Subject: rename runJS to eval --- gjs/src/application.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gjs') 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 { + eval(body: string): Promise { return new Promise((res, rej) => { try { const fn = Function(`return (async function() { -- cgit v1.2.3