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:
Claude
2026-03-27 22:25:15 +00:00
parent 9a1189659b
commit a9c5f9b43f
+1 -7
View File
@@ -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();
});