Skip to content

Commit

Permalink
fix dom node removal in case of missing WebGL support
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Mar 21, 2015
1 parent 94aad3f commit de4e2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Viewer.prototype = {

_initViewer : function() {
if (!this._canvas.initGL()) {
this._domElement.removeChild(this._canvas);
this._domElement.removeChild(this._canvas.domElement());
this._domElement.innerHTML = WEBGL_NOT_SUPPORTED;
this._domElement.style.width = this._options.width + 'px';
this._domElement.style.height = this._options.height + 'px';
Expand Down

0 comments on commit de4e2f2

Please sign in to comment.