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 ...@@ -228,7 +228,7 @@ class Hypothesis extends Annotator
localStorage.setItem "hyp_page_search_query", query localStorage.setItem "hyp_page_search_query", query
catch error catch error
console.warn 'Cannot save query to localStorage!' 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!' console.warn 'localStorage quota exceeded!'
# Set the path # Set the path
...@@ -251,6 +251,7 @@ class Hypothesis extends Annotator ...@@ -251,6 +251,7 @@ class Hypothesis extends Annotator
clearSearch: (original) => clearSearch: (original) =>
@show_search = false @show_search = false
original() original()
$location.path('/viewer')
$rootScope.$digest() $rootScope.$digest()
_setupXDM: -> _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