mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 05:16:02 +00:00
add missing scope.$apply in pdf viewer event handlers
shows up now there are no apply's coming from the unsaved file check
This commit is contained in:
parent
994b307e3f
commit
1160560bfb
1 changed files with 2 additions and 2 deletions
|
@ -307,7 +307,7 @@ define [
|
|||
element.innerWidth()
|
||||
]
|
||||
scope.$emit 'flash-controls'
|
||||
#scope.$apply()
|
||||
scope.$apply()
|
||||
|
||||
scope.$on 'layout:main:resize', () ->
|
||||
# console.log 'GOT LAYOUT-MAIN-RESIZE EVENT'
|
||||
|
@ -324,7 +324,7 @@ define [
|
|||
element.innerHeight(),
|
||||
element.innerWidth()
|
||||
]
|
||||
#scope.$apply()
|
||||
scope.$apply()
|
||||
|
||||
scope.$on 'pdf:error', (event, error) ->
|
||||
return if error == 'cancelled'
|
||||
|
|
Loading…
Add table
Reference in a new issue