add warning log on activation for unsupported GNOME Shell versions

As the extension may work in further GNOME Shell versions without targeted developpement, just add a small warning log without blocking anything.
This commit is contained in:
abakkk 2020-08-31 11:13:49 +02:00
parent a128664921
commit 1d95fac3bf
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ function init() {
}
function enable() {
if (ExtensionUtils.isOutOfDate(Me))
log(`${Me.metadata.uuid}: GNOME Shell ${Number.parseFloat(GS_VERSION)} is not supported.`);
Me.settings = Convenience.getSettings();
Me.internalShortcutSettings = Convenience.getSettings(Me.metadata['settings-schema'] + '.internal-shortcuts');
Me.drawingSettings = Convenience.getSettings(Me.metadata['settings-schema'] + '.drawing');