Add cmd interface

This commit is contained in:
RainLoop Team 2016-08-22 00:30:34 +03:00
parent 17669b7be0
commit e6e1a19477
22 changed files with 540 additions and 111 deletions

View file

@ -1239,10 +1239,10 @@ let
/**
* @param {string} value
* @param {function} themeTrigger
* @param {function=} themeTrigger = noop
* @returns {void}
*/
export function changeTheme(value, themeTrigger)
export function changeTheme(value, themeTrigger = noop)
{
const
themeLink = $('#app-theme-link'),
@ -1272,6 +1272,7 @@ export function changeTheme(value, themeTrigger)
}
window.clearTimeout(__themeTimer);
themeTrigger(SaveSettingsStep.Animate);
if (__themeAjax && __themeAjax.abort)