Skip to content

Commit bb47f58

Browse files
committed
Fix demo on FF 24
1 parent 8ac5f53 commit bb47f58

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs/welcome/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,14 +518,17 @@ <h2>Themes</h2>
518518
$('iframe').each(function(){
519519
var _this = this;
520520

521-
$(this).contents().find('body').append('' +
521+
doc = (this.contentWindow || this.documentWindow).document;
522+
doc.open();
523+
doc.write('' +
522524
'<div class="pace">' +
523525
'<div class="pace-progress" data-progress="50%" style="width: 50%;">' +
524526
'<div class="pace-progress-inner"></div>' +
525527
'</div>' +
526528
'<div class="pace-activity"></div>' +
527529
'</div>' +
528-
'')
530+
'');
531+
doc.close();
529532

530533
// For some strange reason, the Color library we depend on defines itself
531534
// asyncronously

0 commit comments

Comments
 (0)