♻️ Use glob import for utils

This commit is contained in:
Simon Schneegans
2023-09-02 10:21:40 +02:00
parent e9ef77617f
commit 9ae7f9c042
5 changed files with 37 additions and 36 deletions
+3 -3
View File
@@ -21,7 +21,7 @@ import GLib from 'gi://GLib';
import * as Main from 'resource:///org/gnome/shell/ui/main.js';
import * as LookingGlass from 'resource:///org/gnome/shell/ui/lookingGlass.js';
import {getStringResource} from './utils.js';
import * as utils from './utils.js';
//////////////////////////////////////////////////////////////////////////////////////////
// This is based on the window-picking functionality of the Blur-My-Shell extension. //
@@ -34,8 +34,8 @@ export class WindowPicker {
// ------------------------------------------------------------------------- constructor
constructor() {
const iFace =
getStringResource('/interfaces/org.gnome.shell.extensions.burn-my-windows.xml');
const iFace = utils.getStringResource(
'/interfaces/org.gnome.shell.extensions.burn-my-windows.xml');
this._dbus = Gio.DBusExportedObject.wrapJSObject(iFace, this);
}