Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit ca05c2e

Browse files
Unbreak search functionality from ssb-uri change
1 parent 32f9737 commit ca05c2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/app/html/search.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ exports.create = function (api) {
5151
function doSearch () {
5252
const prefixes = ['/', '?', '@', '#', '%', 'ssb:']
5353
var value = searchBox.value.trim()
54-
if (prefixes.some(p => prefixes.includes(p))) {
54+
55+
if (prefixes.some(p => value.startsWith(p))) {
5556
if (value.startsWith('@') && value.length < 30) {
5657
// probably not a key
5758
} else if (value.startsWith('ssb:')) {

0 commit comments

Comments
 (0)