Commit 9e3cbef8 authored by Ujvari Gergely's avatar Ujvari Gergely

clearSearch set route back to the viewer

parent 0ce81653
......@@ -228,7 +228,7 @@ class Hypothesis extends Annotator
localStorage.setItem "hyp_page_search_query", query
catch error
console.warn 'Cannot save query to localStorage!'
if error is QUOTA_EXCEEDED_ERR
if error is DOMException.QUOTA_EXCEEDED_ERR
console.warn 'localStorage quota exceeded!'
# Set the path
......@@ -251,6 +251,7 @@ class Hypothesis extends Annotator
clearSearch: (original) =>
@show_search = false
original()
$location.path('/viewer')
$rootScope.$digest()
_setupXDM: ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment