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:
parent
a8ef25ef6c
commit
831f91e585
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = `
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue