mirror of
https://github.com/zoriya/ags.git
synced 2026-06-08 04:31:41 +00:00
fix run-js semicolon check
This commit is contained in:
+2
-2
@@ -231,8 +231,8 @@ export default class App extends Gtk.Application {
|
||||
|
||||
RunJs(js: string): string {
|
||||
return js.includes(';')
|
||||
? `${Function('return ' + js)()}`
|
||||
: `${Function(js)()}`;
|
||||
? `${Function(js)()}`
|
||||
: `${Function('return ' + js)()}`;
|
||||
}
|
||||
|
||||
RunPromise(js: string, busName?: string, objPath?: string) {
|
||||
|
||||
Reference in New Issue
Block a user