Skip to content

Commit 6cba723

Browse files
Merge pull request #280 from xsorifc28/patch-1
Deepmerge breaks "canvas" stage property
2 parents 21516d2 + 819303e commit 6cba723

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Application/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ export default function(App, appData, platformSettings) {
9090
return class Application extends Lightning.Application {
9191
constructor(options) {
9292
const config = Deepmerge(defaultOptions, options)
93+
// Deepmerge breaks HTMLCanvasElement, so restore the passed in canvas.
94+
if(options.stage.canvas) {
95+
config.stage.canvas = options.stage.canvas
96+
}
9397
super(config)
9498
this.config = config
9599
}

0 commit comments

Comments
 (0)