fix(hermes): resolve const actions redeclaration error

- Rename second actions array to controlActions to avoid variable conflict
- Fix SyntaxError: redeclaration of const actions
This commit is contained in:
Russell Ballestrini 2025-07-02 07:30:46 -04:00
parent a8ef25ef6c
commit 831f91e585

View file

@ -844,13 +844,13 @@ async function openHermesModalNew() {
-webkit-overflow-scrolling: touch;
`;
const actions = [
const controlActions = [
{ text: "📖 Read", action: () => window.readPageWithHermes() },
{ text: "🔊 TTS", action: () => window.openTTSModal() },
{ text: "🌐 Translate", action: () => window.openTranslateModal() }
];
actions.forEach(({ text, action }) => {
controlActions.forEach(({ text, action }) => {
const btn = document.createElement("button");
btn.textContent = text;
btn.style.cssText = `