Skip to content

Commit

Permalink
fix: preferencepane loading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyu committed Jan 11, 2023
1 parent 33c38d3 commit 05ad059
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/preferenceScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export function registerPrefsScripts(_window: Window) {
},
],
};
} else {
addon.data.prefs.window = _window;
}
updatePrefsUI();
bindPrefEvents();
Expand Down Expand Up @@ -114,7 +116,7 @@ async function updatePrefsUI() {
renderLock.resolve();
});
await renderLock.promise;
ztoolkit.log("Preference table rendered!", tableHelper);
ztoolkit.log("Preference table rendered!");
}

function bindPrefEvents() {
Expand Down

0 comments on commit 05ad059

Please sign in to comment.