diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-04-04 08:46:54 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-04-04 08:46:54 +0900 |
| commit | d4a630902d8d250b67fcd0ce2b49240786b40368 (patch) | |
| tree | b87395691e52e3b86ce40196993d492c694c5e79 /src/client/scripts/search.ts | |
| parent | enhance(server): Log error message when internal error occured (diff) | |
| download | misskey-d4a630902d8d250b67fcd0ce2b49240786b40368.tar.gz misskey-d4a630902d8d250b67fcd0ce2b49240786b40368.tar.bz2 misskey-d4a630902d8d250b67fcd0ce2b49240786b40368.zip | |
refactor: Use ===
Diffstat (limited to 'src/client/scripts/search.ts')
| -rw-r--r-- | src/client/scripts/search.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/scripts/search.ts b/src/client/scripts/search.ts index 02dd39b035..16057dfd34 100644 --- a/src/client/scripts/search.ts +++ b/src/client/scripts/search.ts @@ -47,9 +47,9 @@ export async function search(v: any, q: string) { uri: q }); dialog.close(); - if (res.type == 'User') { + if (res.type === 'User') { v.$router.push(`/@${res.object.username}@${res.object.host}`); - } else if (res.type == 'Note') { + } else if (res.type === 'Note') { v.$router.push(`/notes/${res.object.id}`); } } catch (e) { |