function darkMode(){
        $('.js-darkMode').click(function() {
            if ($(this).is(':checked')) {
                $('body').addClass('dark')	
                var opt = {
                    darkMode: 1,
                }
                chrome.storage.local.set({ 'options': opt });
            } else {
                $('body').removeClass('dark');
                var opt = {
                    darkMode: 0,
                }
                chrome.storage.local.set({ 'options': opt });	
            }
        })
    }
/**
     * dark mode swicher
     * @function darkMode
     * @memberof optionsJS
     */
dark mode swicher
@function darkMode
@memberof optionsJS
dark mode swicher @function darkMode @memberof optionsJS
function darkMode(){
        $('.js-darkMode').click(function() {
            if ($(this).is(':checked')) {
                $('body').addClass('dark')	
                var opt = {
                    darkMode: 1,
                }
                chrome.storage.local.set({ 'options': opt });
            } else {
                $('body').removeClass('dark');
                var opt = {
                    darkMode: 0,
                }
                chrome.storage.local.set({ 'options': opt });	
            }
        })
    }
function darkMode ( ) { $ ( '.js-darkMode' ) . click ( function ( ) { if ( $ ( this ) . is ( ':checked' ) ) { $ ( 'body' ) . addClass ( 'dark' ) var opt = { darkMode : 1 , } chrome . storage . local . set ( { 'options' : opt } ) ; } else { $ ( 'body' ) . removeClass ( 'dark' ) ; var opt = { darkMode : 0 , } chrome . storage . local . set ( { 'options' : opt } ) ; } } ) }
dark mode swicher
 @function darkMode
 @memberof optionsJS
dark mode swicher @function darkMode @memberof optionsJS