Commit b7c7074b authored by Randall Leeds's avatar Randall Leeds

Restore 'back' behavior after killing slideover

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