This commit is contained in:
かっこかり 2025-10-05 05:36:24 +00:00 committed by GitHub
commit 3d5481011a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -22,6 +22,7 @@
- Enhance: 時刻計算のための基準値を一か所で管理するようにし、パフォーマンスを向上
- Fix: iOSで、デバイスがダークモードだと初回読み込み時にエラーになる問題を修正
- Fix: アクティビティウィジェットのグラフモードが動作しない問題を修正
- Fix: デッキでリンクをダブルクリックすると、ウィンドウが2枚開いてしまう問題を修正
### Server
- Enhance: ユーザーIPを確実に取得できるために設定ファイルにFastifyOptions.trustProxyを追加しました

View File

@ -129,11 +129,19 @@ const columnComponents = {
chat: XChatColumn,
};
// 22
// 2
let routerNavTimer: number | null = null;
mainRouter.navHook = (path, flag): boolean => {
if (flag === 'forcePage') return false;
const noMainColumn = !columns.value.some(x => x.type === 'main');
if (routerNavTimer != null) return true;
const noMainColumn = !columns.some(x => x.type === 'main');
if (prefer.s['deck.navWindow'] || noMainColumn) {
os.pageWindow(path);
routerNavTimer = window.setTimeout(() => {
routerNavTimer = null;
}, 300);
return true;
}
return false;