mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
v2.0.0-rc3
This commit is contained in:
parent
8a8d64a2c1
commit
20b1e08c9b
3 changed files with 16 additions and 22 deletions
|
|
@ -82,15 +82,7 @@ export function screen(screenName) {
|
|||
* @returns {Function|null}
|
||||
*/
|
||||
function getScreenPopup(PopuViewModelClass) {
|
||||
let result = null;
|
||||
if (PopuViewModelClass) {
|
||||
result = PopuViewModelClass;
|
||||
if (PopuViewModelClass.default) {
|
||||
result = PopuViewModelClass.default;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
return PopuViewModelClass ? PopuViewModelClass.default || PopuViewModelClass : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue