mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
gex: add eslint, cleanup parsing of some stuff
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
declare const global: any, imports: any;
|
||||
//@ts-ignore
|
||||
const ThisModule = imports.misc.extensionUtils.getCurrentExtension();
|
||||
declare const imports: any;
|
||||
const Me = imports.misc.extensionUtils.getCurrentExtension();
|
||||
|
||||
const GLib = imports.gi.GLib;
|
||||
|
||||
export class File {
|
||||
public static DBus(name: string) {
|
||||
let file = `${ThisModule.path}/resources/dbus/${name}.xml`;
|
||||
const file = `${Me.path}/resources/dbus/${name}.xml`;
|
||||
try {
|
||||
let [_ok, bytes] = GLib.file_get_contents(file)
|
||||
const [_ok, bytes] = GLib.file_get_contents(file);
|
||||
if (!_ok)
|
||||
//@ts-ignore
|
||||
log(`Couldn't read contents of "${file}"`);
|
||||
|
||||
Reference in New Issue
Block a user