mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-11 16:53:51 +01:00
Fix: Don't use globalThis, since it won't get g.c. on window close
Don't use `globalThis`, since it won't get garbage collected on window close. See here for the relevant review: https://extensions.gnome.org/review/38364 And for the relevant documentation: https://gjs.guide/extensions/review-guidelines/review-guidelines.html#only-use-init-for-initialization
This commit is contained in:
parent
2ef16f310c
commit
7b1c030325
2 changed files with 7 additions and 4 deletions
|
|
@ -11,6 +11,4 @@ function buildPrefsWidget() {
|
|||
}
|
||||
|
||||
function init() {
|
||||
// Load the settings.
|
||||
globalThis.settings = ExtensionUtils.getSettings();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue