Merge pull request #11 from jahruz67/fix/html-parse-error

Fix HTML parsing error by removing control characters
This commit is contained in:
jahruz67
2026-07-29 15:21:19 -07:00
committed by GitHub
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -543,6 +543,7 @@ func (a *App) SaveSettings(settings map[string]interface{}) string {
// Since GetSettings masks the key, we only update if it's not still the masked value. // Since GetSettings masks the key, we only update if it's not still the masked value.
a.transcriber = transcriber.NewClient( a.transcriber = transcriber.NewClient(
a.config.GroqAPIKey, a.config.GroqAPIKey,
a.config.MistralAPIKey,
a.config.WhisperModel, a.config.WhisperModel,
a.config.AIModel, a.config.AIModel,
a.config.AIPrompt, a.config.AIPrompt,
+3 -3
View File
@@ -103,8 +103,8 @@
<button onclick="copyLinuxPressCommand()">Copy</button> <button onclick="copyLinuxPressCommand()">Copy</button>
</div> </div>
</div> </div>
<p class="hint" style="margin-top: 10px;">GNOME: Settings  Keyboard  Custom Shortcuts  Add a shortcut with the copied command.</p> <p class="hint" style="margin-top: 10px;">GNOME: Settings &gt; Keyboard &gt; Custom Shortcuts &gt; Add a shortcut with the copied command.</p>
<p class="hint">KDE: System Settings  Shortcuts  Command/URL  Add a shortcut with the copied command.</p> <p class="hint">KDE: System Settings &gt; Shortcuts &gt; Command/URL &gt; Add a shortcut with the copied command.</p>
</details> </details>
</div> </div>
@@ -221,7 +221,7 @@
<div id="whisperInstalled" style="display: none;"> <div id="whisperInstalled" style="display: none;">
<div style="background: var(--green-dim); border: 1px solid rgba(61, 186, 110, 0.25); border-radius: 7px; padding: 13px 16px; margin-bottom: 14px;"> <div style="background: var(--green-dim); border: 1px solid rgba(61, 186, 110, 0.25); border-radius: 7px; padding: 13px 16px; margin-bottom: 14px;">
<div style="color: var(--green); font-weight: 500; font-size: 13px;"> Offline Whisper installed</div> <div style="color: var(--green); font-weight: 500; font-size: 13px;"> Offline Whisper installed</div>
<div style="font-size: 12px; color: var(--text-2); margin-top: 4px;"> <div style="font-size: 12px; color: var(--text-2); margin-top: 4px;">
Model: <span id="installedModel"></span> Model: <span id="installedModel"></span>
</div> </div>