fix(stream-presenter-effect): Prevent memory leak.
On electron 7 drawing on hidden canvas will trigger a memory leak. Not appending the canvas for the DOM seems to solve the problem.
This commit is contained in:
parent
2064fc8937
commit
cf27ad0dde
|
@ -44,9 +44,6 @@ export default class JitsiStreamPresenterEffect {
|
|||
this._canvas = document.createElement('canvas');
|
||||
this._ctx = this._canvas.getContext('2d');
|
||||
|
||||
if (document.body !== null) {
|
||||
document.body.appendChild(this._canvas);
|
||||
}
|
||||
this._desktopElement = document.createElement('video');
|
||||
this._videoElement = document.createElement('video');
|
||||
videoDiv.appendChild(this._videoElement);
|
||||
|
|
Loading…
Reference in New Issue