Skip to content

Commit a0a64e9

Browse files
committed
fixing no doc in latest update
1 parent e6ce592 commit a0a64e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/GameWindow.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,8 +2429,10 @@
24292429

24302430
var doc, imgs, len, counter, increment;
24312431
doc = W.getFrameDocument();
2432-
imgs = doc.images;
2433-
len = imgs.length;
2432+
if (doc) {
2433+
imgs = doc.images;
2434+
len = imgs.length;
2435+
}
24342436

24352437
// If there are no images, we wait a fixed 120 milliseconds.
24362438
if (!len) {

0 commit comments

Comments
 (0)