jameslittle230 / stork

🔎 Impossibly fast web search, made for static sites.
https://stork-search.net
Apache License 2.0
2.73k stars 56 forks source link

onResultSelected should stop changing location if the returned promise is rejected #359

Open wintercounter opened 1 year ago

wintercounter commented 1 year ago

I'd like to use pushState instead of refreshing the page. The callback is allowed to return a promise, but I'd like if all operations would completely stop if I return a rejected promise which imo would make a lot of sense.