🚧 Continue port to ESM

This commit is contained in:
Simon Schneegans
2023-07-12 11:44:43 +02:00
parent 8a0c29a52f
commit 7b90fd70bc
3 changed files with 6 additions and 19 deletions
+1 -8
View File
@@ -17,14 +17,7 @@
import Gio from 'gi://Gio';
import Gtk from 'gi://Gtk';
import GLib from 'gi://GLib';
// libadwaita is available starting with GNOME Shell 42.
let Adw = null;
try {
Adw = await import('gi://Adw');
} catch (e) {
// Nothing to do.
}
import Adw from 'gi://Adw';
// Returns the given argument, except for "alpha", "beta", and "rc". In these cases -3,
// -2, and -1 are returned respectively.