[MM-40329] Unit tests for main/views (#1883)
* WIP * [MM-40329] Unit tests for main/views * Lint/type fix * Merge'd
This commit is contained in:
@@ -30,7 +30,7 @@ import {getWindowBoundaries, getLocalPreload, composeUserAgent} from '../utils';
|
||||
import * as WindowManager from '../windows/windowManager';
|
||||
import * as appState from '../appState';
|
||||
|
||||
import {removeWebContentsListeners} from './webContentEvents';
|
||||
import WebContentsEventManager from './webContentEvents';
|
||||
|
||||
export enum Status {
|
||||
LOADING,
|
||||
@@ -215,7 +215,7 @@ export class MattermostView extends EventEmitter {
|
||||
}
|
||||
|
||||
destroy = () => {
|
||||
removeWebContentsListeners(this.view.webContents.id);
|
||||
WebContentsEventManager.removeWebContentsListeners(this.view.webContents.id);
|
||||
appState.updateMentions(this.tab.name, 0, false);
|
||||
if (this.window) {
|
||||
this.window.removeBrowserView(this.view);
|
||||
|
Reference in New Issue
Block a user