scripts/index.js
/**
 * Change the theme of the app
 * @param {string} newTheme theme-light or theme-dark
 */
Change the theme of the app
@param {string} newTheme theme-light or theme-dark
Change the theme of the app @param { string } newTheme theme - light or theme - dark
function changeTheme(newTheme) {
    if ($("body").hasClass(settings.theme)) {
        $("body").removeClass(settings.theme);
    }
    $("body").addClass(newTheme);
    settings.theme = newTheme;
    updateSettings();
}
function changeTheme ( newTheme ) { if ( $ ( "body" ) . hasClass ( settings . theme ) ) { $ ( "body" ) . removeClass ( settings . theme ) ; } $ ( "body" ) . addClass ( newTheme ) ; settings . theme = newTheme ; updateSettings ( ) ; }
Change the theme of the app
 @param {string} newTheme theme-light or theme-dark
Change the theme of the app @param { string } newTheme theme - light or theme - dark
// Store new theme