From 253debb3f9a7ea55147081586ef4e5ad69169197 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Sat, 17 Oct 2026 20:04:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=AA=97=E5=8F=A3=E6=A0=87=E9=A2=98):=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=A0=87=E9=A2=98=E6=8B=BC=E6=8E=A5=E5=8F=8A?= =?UTF-8?q?=E5=8E=9F=E7=94=9F=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/webui/index.html | 2 +- assets/webui/ofdgo.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/webui/index.html b/assets/webui/index.html index 41933b8..a653812 100644 --- a/assets/webui/index.html +++ b/assets/webui/index.html @@ -4,7 +4,7 @@ - OFDGo - OFD编辑器 + OFDGo WebUI - OFD编辑器 diff --git a/assets/webui/ofdgo.js b/assets/webui/ofdgo.js index 213f17d..745702f 100644 --- a/assets/webui/ofdgo.js +++ b/assets/webui/ofdgo.js @@ -1704,6 +1704,7 @@ document.addEventListener("visibilitychange", () => { el.fontDirectoryButton.disabled = !("webkitdirectory" in el.fontDirectoryInput); nativeHost?.installFileInputs(error => showError(error, false)); +if (nativeHost) document.title = "OFDGo - OFD编辑器"; updateSidebarState(); boot(); @@ -10735,7 +10736,7 @@ function renderMeta(keepDetails = false) { }); el.documentSelect.value = String(doc.documentIndex || 0); el.metaPanel.setAttribute("data-busy", String(!!doc.detailsPending)); - document.title = state.doc ? `${nativeHost ? "OFDGo" : "OFDGo WebUI"} - ${state.fileName}` : "OFDGo - OFD编辑器"; + document.title = `${nativeHost ? "OFDGo" : "OFDGo WebUI"} - ${state.doc ? state.fileName : "OFD编辑器"}`; el.metaFile.textContent = state.fileName; el.metaTitle.textContent = doc.title || "-"; el.metaAuthor.textContent = doc.author || "-";