diff options
| author | Khsmty <me@khsmty.com> | 2023-02-25 09:01:21 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-25 09:01:21 +0900 |
| commit | 64be363adca6385104e4af268e2e57a06c4d83a9 (patch) | |
| tree | 99dc43380b92b6729a1e1789e62df40f24cbc1cb /packages/frontend/src/init.ts | |
| parent | Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop (diff) | |
| download | misskey-64be363adca6385104e4af268e2e57a06c4d83a9.tar.gz misskey-64be363adca6385104e4af268e2e57a06c4d83a9.tar.bz2 misskey-64be363adca6385104e4af268e2e57a06c4d83a9.zip | |
feat: 2つの検索画面の統合 (#9949) (#10038)
* feat: 検索画面の UI を統一
* fix: エラーの修正
* add: changelog
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/frontend/src/init.ts')
| -rw-r--r-- | packages/frontend/src/init.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/frontend/src/init.ts b/packages/frontend/src/init.ts index 8c657295f9..0a626b36c6 100644 --- a/packages/frontend/src/init.ts +++ b/packages/frontend/src/init.ts @@ -36,7 +36,6 @@ import { $i, refreshAccount, login, updateAccount, signout } from '@/account'; import { defaultStore, ColdDeviceStorage } from '@/store'; import { fetchInstance, instance } from '@/instance'; import { makeHotkey } from '@/scripts/hotkey'; -import { search } from '@/scripts/search'; import { deviceKind } from '@/scripts/device-kind'; import { initializeSw } from '@/scripts/initialize-sw'; import { reloadChannel } from '@/scripts/unison-reload'; @@ -47,6 +46,7 @@ import { deckStore } from './ui/deck/deck-store'; import { miLocalStorage } from './local-storage'; import { claimAchievement, claimedAchievements } from './scripts/achievements'; import { fetchCustomEmojis } from './custom-emojis'; +import { mainRouter } from './router'; console.info(`Misskey v${version}`); @@ -352,7 +352,9 @@ const hotkeys = { 'd': (): void => { defaultStore.set('darkMode', !defaultStore.state.darkMode); }, - 's': search, + 's': (): void => { + mainRouter.push('/search'); + } }; if ($i) { |