mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-12 19:06:06 +00:00
replace $timeout by setTimeout in pdf viewer update
This commit is contained in:
parent
ed6eedd9e2
commit
62d5916883
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ define [
|
|||
ctrl.setScale(scale, h, w).then () ->
|
||||
spinner.remove(element)
|
||||
ctrl.redraw(origposition)
|
||||
$timeout renderVisiblePages, 0
|
||||
setTimeout renderVisiblePages, 0
|
||||
|
||||
checkElementReady = () ->
|
||||
# if element is zero-sized keep checking until it is ready
|
||||
|
|
Loading…
Add table
Reference in a new issue