Skip to content

Commit

Permalink
fix body
Browse files Browse the repository at this point in the history
  • Loading branch information
LingDong- committed Sep 8, 2020
1 parent 3b48f95 commit 7fb75e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion q5.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,15 @@ function Q5(scope){
$.canvas.height = $.height;

if (scope != "offscreen"){
document.body.appendChild($.canvas);
if (document.body){
document.body.appendChild($.canvas);
}else{
window.addEventListener("load",function(){
document.body.appendChild($.canvas);
})
}
}

defaultStyle();

//================================================================
Expand Down
Loading

0 comments on commit 7fb75e0

Please sign in to comment.