mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Remove global window and navigator usages from the core code.
This commit is contained in:
parent
1e3e14e6b2
commit
1e4886a15a
4 changed files with 9 additions and 13 deletions
|
@ -2002,7 +2002,7 @@ var InternalRenderTask = (function InternalRenderTaskClosure() {
|
|||
},
|
||||
|
||||
_scheduleNext: function InternalRenderTask__scheduleNext() {
|
||||
if (this.useRequestAnimationFrame) {
|
||||
if (this.useRequestAnimationFrame && typeof window !== 'undefined') {
|
||||
window.requestAnimationFrame(this._nextBound);
|
||||
} else {
|
||||
Promise.resolve(undefined).then(this._nextBound);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue