summaryrefslogtreecommitdiff
path: root/src/client/scripts/search.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/scripts/search.ts')
-rw-r--r--src/client/scripts/search.ts4
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) {