popup.js
/**
 * Starts the refresh Watcher which checks the Time every Millisecond
 */
Starts the refresh Watcher which checks the Time every Millisecond
Starts the refresh Watcher which checks the Time every Millisecond
function startRefreshWatcher(startDateWithOffset) {
    const currentDate = new Date();
    if (isRefreshed === false && currentDate >= startDateWithOffset) {
        refreshTab();
        isRefreshed = true;
        return;
    }
    if (!isRefreshed) {
        setTimeout(function () {
            startRefreshWatcher(startDateWithOffset);
        }, 1)
    }
}
function startRefreshWatcher ( startDateWithOffset ) { const currentDate = new Date ( ) ; if ( isRefreshed === false && currentDate >= startDateWithOffset ) { refreshTab ( ) ; isRefreshed = true ; return ; } if ( ! isRefreshed ) { setTimeout ( function ( ) { startRefreshWatcher ( startDateWithOffset ) ; } , 1 ) } }
Starts the refresh Watcher which checks the Time every Millisecond
Starts the refresh Watcher which checks the Time every Millisecond