fix(窗口标题): 修正标题拼接及原生名称
build.yaml / build (push) Successful in 48s

This commit is contained in:
xiaoqidun committed 2026-10-17 20:04:25 +08:00
1 parent d44d096972
commit 253debb3f9
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#fbfcfd"> <meta name="theme-color" content="#fbfcfd">
<title>OFDGo - OFD编辑器</title> <title>OFDGo WebUI - OFD编辑器</title>
<link rel="manifest" href="./ofdgo.json"> <link rel="manifest" href="./ofdgo.json">
<link rel="icon" type="image/x-icon" sizes="16x16 32x32 48x48 64x64 128x128 256x256" href="./ofdgo.ico"> <link rel="icon" type="image/x-icon" sizes="16x16 32x32 48x48 64x64 128x128 256x256" href="./ofdgo.ico">
<link rel="icon" type="image/svg+xml" href="./ofdgo.svg"> <link rel="icon" type="image/svg+xml" href="./ofdgo.svg">
+2 -1
View File
@@ -1704,6 +1704,7 @@ document.addEventListener("visibilitychange", () => {
el.fontDirectoryButton.disabled = !("webkitdirectory" in el.fontDirectoryInput); el.fontDirectoryButton.disabled = !("webkitdirectory" in el.fontDirectoryInput);
nativeHost?.installFileInputs(error => showError(error, false)); nativeHost?.installFileInputs(error => showError(error, false));
if (nativeHost) document.title = "OFDGo - OFD编辑器";
updateSidebarState(); updateSidebarState();
boot(); boot();
@@ -10735,7 +10736,7 @@ function renderMeta(keepDetails = false) {
}); });
el.documentSelect.value = String(doc.documentIndex || 0); el.documentSelect.value = String(doc.documentIndex || 0);
el.metaPanel.setAttribute("data-busy", String(!!doc.detailsPending)); 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.metaFile.textContent = state.fileName;
el.metaTitle.textContent = doc.title || "-"; el.metaTitle.textContent = doc.title || "-";
el.metaAuthor.textContent = doc.author || "-"; el.metaAuthor.textContent = doc.author || "-";