Commit 0d2622ff489b557c2436f058570156a1e0aac20d
allow search box to navigate to /pages
Matt McKegg committed on 10/29/2016, 1:48:50 PMParent: 59a93bae54e15b5c67bccd58e67ef2973c33e1bd
Files changed
main-window.js | changed |
main-window.js | ||
---|---|---|
@@ -135,9 +135,9 @@ | ||
135 | 135 … | } |
136 | 136 … | |
137 | 137 … | function doSearch () { |
138 | 138 … | var value = searchBox.value.trim() |
139 | - if (value.startsWith('?') || value.startsWith('@') || value.startsWith('#') || value.startsWith('%')) { | |
139 … | + if (value.startsWith('/') || value.startsWith('?') || value.startsWith('@') || value.startsWith('#') || value.startsWith('%')) { | |
140 | 140 … | setView(value) |
141 | 141 … | } else if (value.trim()) { |
142 | 142 … | setView(`?${value.trim()}`) |
143 | 143 … | } else { |
Built with git-ssb-web