[MM-36032] Add electron-context-menu to popup windows (#1746)
This commit is contained in:
@@ -8,6 +8,8 @@ import {TeamWithTabs} from 'types/config';
|
|||||||
|
|
||||||
import urlUtils from 'common/utils/url';
|
import urlUtils from 'common/utils/url';
|
||||||
|
|
||||||
|
import ContextMenu from 'main/contextMenu';
|
||||||
|
|
||||||
import * as WindowManager from '../windows/windowManager';
|
import * as WindowManager from '../windows/windowManager';
|
||||||
|
|
||||||
import {protocols} from '../../../electron-builder.json';
|
import {protocols} from '../../../electron-builder.json';
|
||||||
@@ -190,6 +192,9 @@ const generateNewWindowListener = (getServersFunction: () => TeamWithTabs[], spe
|
|||||||
userAgent: composeUserAgent(),
|
userAgent: composeUserAgent(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const contextMenu = new ContextMenu({}, popupWindow);
|
||||||
|
contextMenu.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
return {action: 'deny'};
|
return {action: 'deny'};
|
||||||
|
Reference in New Issue
Block a user