Refactor: Add settings to globalThis

Do this so that we don't have to get them in each class individually.
This commit is contained in:
June 2023-01-22 15:48:35 +01:00
commit 34ba8a58cd
No known key found for this signature in database
GPG key ID: 094C2AC34192FA11
4 changed files with 6 additions and 10 deletions

View file

@ -11,4 +11,6 @@ function buildPrefsWidget() {
}
function init() {
// Load the settings.
globalThis.settings = ExtensionUtils.getSettings();
}