summaryrefslogtreecommitdiff
path: root/src/main/index.ts
diff options
context:
space:
mode:
authorhaoyuren <13851610112@163.com>2026-03-13 00:52:59 -0500
committerhaoyuren <13851610112@163.com>2026-03-13 00:52:59 -0500
commit52a5c24f5e28a4b2ba8ffb006874cd7b552d60f7 (patch)
tree2dc6182077eb3d3a5d6d1a5f655cde1896435cad /src/main/index.ts
parenta0dd3d7ac642111faeaefd02c5a452898b9c6d49 (diff)
Rename to LatteX, add LaTeX autocomplete, fix comment highlight positionsv0.1.0
- Rename project from ClaudeTeX to LatteX (Cosmic Latte theme pun) - Add new coffee cup logo and branded welcome/project screens - Add 5-source LaTeX autocomplete: commands, environments, \ref, \cite, file paths - Fix comment highlight drift by decoding WebSocket-encoded UTF-8 lines and range text via decodeURIComponent(escape()), matching Overleaf's client implementation - Remove hacky byte-offset position remapping from index.ts - Add pinch-to-zoom on PDF viewer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/main/index.ts')
-rw-r--r--src/main/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/index.ts b/src/main/index.ts
index 89a04b0..7fc1c4d 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -211,9 +211,9 @@ ipcMain.handle('overleaf:webLogin', async () => {
// Inject a floating back button when navigated away from overleaf.com
const injectBackButton = () => {
loginWindow.webContents.executeJavaScript(`
- if (!document.getElementById('claudetex-back-btn')) {
+ if (!document.getElementById('lattex-back-btn')) {
const btn = document.createElement('div');
- btn.id = 'claudetex-back-btn';
+ btn.id = 'lattex-back-btn';
btn.innerHTML = '← Back';
btn.style.cssText = 'position:fixed;top:8px;left:8px;z-index:999999;padding:6px 14px;' +
'background:#333;color:#fff;border-radius:6px;cursor:pointer;font:13px -apple-system,sans-serif;' +