mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Use JavaScript Optional chaining
This commit is contained in:
parent
d9bc435e2c
commit
732b6eb641
55 changed files with 169 additions and 199 deletions
|
|
@ -49,10 +49,7 @@ export function runSettingsViewModelHooks(admin) {
|
|||
* @param {string} name
|
||||
* @returns {?}
|
||||
*/
|
||||
rl.pluginSettingsGet = (pluginSection, name) => {
|
||||
let plugins = SettingsGet('Plugins');
|
||||
plugins = plugins && null != plugins[pluginSection] ? plugins[pluginSection] : null;
|
||||
return plugins ? (null == plugins[name] ? null : plugins[name]) : null;
|
||||
};
|
||||
rl.pluginSettingsGet = (pluginSection, name) =>
|
||||
SettingsGet('Plugins')?.[pluginSection]?.[name];
|
||||
|
||||
rl.pluginPopupView = AbstractViewPopup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue