fix: Options tab broken — removed footer link crashed init
Removing the footer <a id="btnOptions"> made $('#btnOptions') return
null, causing addEventListener to throw. This killed the rest of
initUnlockedUI(), preventing the Options tab and all subsequent
handlers from being wired up.
https://claude.ai/code/session_01SWSwDfMVij53bCTNSCLMwn
This commit is contained in:
+1
-7
@@ -208,13 +208,7 @@ async function initUnlockedUI() {
|
||||
});
|
||||
});
|
||||
|
||||
// Options link (footer)
|
||||
$('#btnOptions').addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
api.runtime.openOptionsPage();
|
||||
});
|
||||
|
||||
// Options tab
|
||||
// Open full options page button (Options tab)
|
||||
$('#btnOpenFullOptions').addEventListener('click', () => {
|
||||
api.runtime.openOptionsPage();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user