From 71203c66bb08d9dc9728f7052168c335859dbeb5 Mon Sep 17 00:00:00 2001
From: Mars <3361409208a@gmail.com>
Date: Tue, 23 Jun 2026 16:29:09 +0800
Subject: [PATCH] =?UTF-8?q?fix(player):=20=E4=BF=AE=E5=A4=8D=E4=B8=BB?=
=?UTF-8?q?=E9=A2=98=E5=88=86=E6=94=AF=E7=BD=91=E7=AB=99=E5=9B=BE=E6=A0=87?=
=?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
favicon.svg 原外链 /logo.png 浏览器无法加载;改为内嵌 base64
index.html 增加 logo.png 作为 favicon 回退;theme-3 theme-color 对齐 #0F2027
---
apps/player/index.html | 1 +
packages/shared/public/favicon.svg | 4 +---
scripts/gen-favicon-svg.mjs | 16 ++++++++++++++++
3 files changed, 18 insertions(+), 3 deletions(-)
create mode 100644 scripts/gen-favicon-svg.mjs
diff --git a/apps/player/index.html b/apps/player/index.html
index ab68476..eed497c 100644
--- a/apps/player/index.html
+++ b/apps/player/index.html
@@ -9,6 +9,7 @@
+
TheBet365
diff --git a/packages/shared/public/favicon.svg b/packages/shared/public/favicon.svg
index 3065d7f..a267220 100644
--- a/packages/shared/public/favicon.svg
+++ b/packages/shared/public/favicon.svg
@@ -1,3 +1 @@
-
+
\ No newline at end of file
diff --git a/scripts/gen-favicon-svg.mjs b/scripts/gen-favicon-svg.mjs
new file mode 100644
index 0000000..294ebe8
--- /dev/null
+++ b/scripts/gen-favicon-svg.mjs
@@ -0,0 +1,16 @@
+import { readFileSync, writeFileSync } from 'node:fs';
+import { resolve, dirname } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const root = resolve(dirname(fileURLToPath(import.meta.url)), '..');
+const logoPath = resolve(root, 'packages/shared/public/logo.png');
+const outPath = resolve(root, 'packages/shared/public/favicon.svg');
+const b64 = readFileSync(logoPath).toString('base64');
+
+writeFileSync(
+ outPath,
+ ``,
+ 'utf8',
+);
+
+console.log('Wrote', outPath);