function checkTasks() {
        chrome.storage.local.get(['tasks'], function (result) {
            if (result.tasks != undefined) {
                $('.js-work-content').removeClass('hidden');
                if (result.tasks.lastTaskId == 0) {
                    $('.js-noTask').removeClass('hidden');
                    $('.js-hasTask').addClass('hidden');
                } else if (result.tasks.lastTaskId > 0) {
                    $('.js-footer').removeClass('hidden');
                } 

                if (result.tasks.oldTasks.length > 1) {
                    $('.js-previousTasksText').removeClass('hidden')
                }
            }
        });
    }
/**
     * check if there is a current task
     * @function checkTasks
     * @memberof popupjs
     */
check if there is a current task
@function checkTasks
@memberof popupjs
check if there is a current task @function checkTasks @memberof popupjs
function checkTasks() {
        chrome.storage.local.get(['tasks'], function (result) {
            if (result.tasks != undefined) {
                $('.js-work-content').removeClass('hidden');
                if (result.tasks.lastTaskId == 0) {
                    $('.js-noTask').removeClass('hidden');
                    $('.js-hasTask').addClass('hidden');
                } else if (result.tasks.lastTaskId > 0) {
                    $('.js-footer').removeClass('hidden');
                } 
                if (result.tasks.oldTasks.length > 1) {
                    $('.js-previousTasksText').removeClass('hidden')
                }
            }
        });
    }
function checkTasks ( ) { chrome . storage . local . get ( [ 'tasks' ] , function ( result ) { if ( result . tasks != undefined ) { $ ( '.js-work-content' ) . removeClass ( 'hidden' ) ; if ( result . tasks . lastTaskId == 0 ) { $ ( '.js-noTask' ) . removeClass ( 'hidden' ) ; $ ( '.js-hasTask' ) . addClass ( 'hidden' ) ; } else if ( result . tasks . lastTaskId > 0 ) { $ ( '.js-footer' ) . removeClass ( 'hidden' ) ; } if ( result . tasks . oldTasks . length > 1 ) { $ ( '.js-previousTasksText' ) . removeClass ( 'hidden' ) } } } ) ; }
check if there is a current task
 @function checkTasks
 @memberof popupjs
check if there is a current task @function checkTasks @memberof popupjs