Commit b7c7074b authored by Randall Leeds's avatar Randall Leeds

Restore 'back' behavior after killing slideover

parent 9a161af8
......@@ -161,9 +161,6 @@ class Hypothesis extends Annotator
# This guy does stuff when you "back out" of the interface.
# (Currently triggered by a click on the source page.)
return unless drafts.discard()
if $location.path() == '/viewer' and $location.search()?.id?
$rootScope.$apply => $location.search('id', null).replace()
else
$rootScope.$apply => this.hide()
)
......
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