This extension controls Nanoleaf shapes and possibly others Nanoleaf devices on your local (wifi) network. If you are experiencing an error on the upgrade, please log out and log in again.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
What's the reason for import inside that function (line 51 prefs.js)?
In prefspage.js, I use gresource as template. See the use: "Template: 'resource:///org/gnome/Shell/Extensions/nano-lights...'" in prefspage.js on few places. So, I need to call: 'Gio.resources_register(resource);' in prefs.js before importing prefspage.js in order to have the templates working. That is reason for the dynamic import.
In prefspage.js, I use gresource as template. See the use: "Template: 'resource:///org/gnome/Shell/Extensions/nano-lights...'" in prefspage.js on few places. So, I need to call: 'Gio.resources_register(resource);' in prefs.js before importing prefspage.js in order to have the templates working. That is reason for the dynamic import.