diff --git a/.gitignore b/.gitignore index 2c6474b..64dbfb6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -snowy.zip +snowy@exposedcat.shell-extension.zip schemas/gschemas.compiled \ No newline at end of file diff --git a/extension.js b/extension.js index 0e44569..962c316 100644 --- a/extension.js +++ b/extension.js @@ -1,7 +1,8 @@ const { GLib } = imports.gi const Utils = imports.misc.extensionUtils const Extension = Utils.getCurrentExtension() -const { manager: Manager, config: Config } = Extension.imports.js +const { Config } = Extension.imports.js.config +const { Manager } = Extension.imports.js.manager let manager = null diff --git a/js/config.js b/js/config.js index e0f333a..0a719ef 100644 --- a/js/config.js +++ b/js/config.js @@ -1,7 +1,9 @@ +const GObject = imports.gi.GObject + const Utils = imports.misc.extensionUtils const Extension = Utils.getCurrentExtension() -class Config { +var Config = class Config { constructor(id) { this.data = Utils.getSettings(id) } diff --git a/js/manager.js b/js/manager.js index 72dc3ad..66d8d92 100644 --- a/js/manager.js +++ b/js/manager.js @@ -6,7 +6,7 @@ const Extension = Utils.getCurrentExtension() const { Snowflake } = Extension.imports.js.snowflake const { random, setInterval } = Extension.imports.js.utils -class Manager { +var Manager = class Manager { constructor() { this.timerId = null this.snowing = false diff --git a/js/snowflake.js b/js/snowflake.js index f2978ad..13ab892 100644 --- a/js/snowflake.js +++ b/js/snowflake.js @@ -6,7 +6,7 @@ const Extension = Utils.getCurrentExtension() const { random } = Extension.imports.js.utils -class Snowflake { +var Snowflake = class Snowflake { constructor(config) { const icons = config.string('flake-icons').split(',') const iconNumber = random(0, icons.length - 1) diff --git a/metadata.json b/metadata.json index 126f15f..cdbd865 100644 --- a/metadata.json +++ b/metadata.json @@ -2,6 +2,8 @@ "description": "Make you festive mood with falling snow on your GNOME DE system", "name": "Snowy", "shell-version": [ + "43", + "42", "41", "40", "3" @@ -9,4 +11,4 @@ "url": "https://github.com/ExposedCat/snowy", "uuid": "snowy@exposedcat", "version": 3.1 -} +} \ No newline at end of file