git ssb

10+

Matt McKegg / patchwork



Commit 0d2622ff489b557c2436f058570156a1e0aac20d

allow search box to navigate to /pages

Matt McKegg committed on 10/29/2016, 1:48:50 PM
Parent: 59a93bae54e15b5c67bccd58e67ef2973c33e1bd

Files changed

main-window.jschanged
main-window.jsView
@@ -135,9 +135,9 @@
135135 }
136136
137137 function doSearch () {
138138 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('%')) {
140140 setView(value)
141141 } else if (value.trim()) {
142142 setView(`?${value.trim()}`)
143143 } else {

Built with git-ssb-web