popup.js
/**
 * Starts an Live Clock in the Popup and refreshes every 100Ms
 * @param txtTime
 */
Starts an Live Clock in the Popup and refreshes every 100Ms
@param txtTime
Starts an Live Clock in the Popup and refreshes every 100Ms @param txtTime
function startLiveClock(txtTime) {
    const currentDate = new Date();
    let currentHour = currentDate.getHours();
    let currentMinute = currentDate.getMinutes();
    let currentSeconds = currentDate.getSeconds();
    let currentMilliseconds = currentDate.getMilliseconds();
    txtTime.textContent = checkTime(currentHour) + ":" + checkTime(currentMinute) + ":" + checkTime(currentSeconds) + ":" + checkTime(currentMilliseconds);
    setTimeout(function () {
        startLiveClock(txtTime);
    }, 100)
}
function startLiveClock ( txtTime ) { const currentDate = new Date ( ) ; let currentHour = currentDate . getHours ( ) ; let currentMinute = currentDate . getMinutes ( ) ; let currentSeconds = currentDate . getSeconds ( ) ; let currentMilliseconds = currentDate . getMilliseconds ( ) ; txtTime . textContent = checkTime ( currentHour ) + ":" + checkTime ( currentMinute ) + ":" + checkTime ( currentSeconds ) + ":" + checkTime ( currentMilliseconds ) ; setTimeout ( function ( ) { startLiveClock ( txtTime ) ; } , 100 ) }
Starts an Live Clock in the Popup and refreshes every 100Ms
 @param txtTime
Starts an Live Clock in the Popup and refreshes every 100Ms @param txtTime