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:
Hristo Terezov 2020-03-02 11:25:32 +00:00
parent 2064fc8937
commit cf27ad0dde
1 changed files with 0 additions and 3 deletions

View File

@ -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);