Skip to content

Commit

Permalink
Add support for Edge.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaneenige committed Jul 27, 2018
1 parent 65397e4 commit 9ce6c0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,14 @@ class Renderer {
/**
* Create a renderer.
* @param {HTMLElement} canvas - The element on which the scene will be rendered.
* @param {object} [context={}] - Options used when getting the context.
* @param {string} [contextType='webgl'] - The context identifier defining the drawing context.
* @param {object} [settings={}] - Options used when creating the renderer.
* @param {object} context - Options used when getting the context.
* @param {string} contextType - The context identifier defining the drawing context.
* @param {object} settings - Options used when creating the renderer.
*/
constructor({
canvas = document.querySelector('canvas'),
context = {},
contextType = 'webgl',
contextType = 'experimental-webgl',
settings = {},
} = {}) {
// Get context with optional parameters
Expand Down

0 comments on commit 9ce6c0c

Please sign in to comment.