component/alarm.js
/* 
    Create and show a notification for an already expired session
*/
Create and show a notification for an already expired session
Create and show a notification for an already expired session
async function sessionExpirationWarning(options) {
    var uid = UID_PREFIX_REMINDER + options.hostname;
    browser.notifications.create(uid, {
        "type": "basic",
        "iconUrl": browser.runtime.getURL("icons/font-awesome_4-7-0_hourglass-half_48.png"),
        "title": "Reminder",
        "message": "Your daily limit on " + options.hostname + " will be reached in " + options.timeLeft + " seconds."
    });
}
async function sessionExpirationWarning ( options ) { var uid = UID_PREFIX_REMINDER + options . hostname ; browser . notifications . create ( uid , { "type" : "basic" , "iconUrl" : browser . runtime . getURL ( "icons/font-awesome_4-7-0_hourglass-half_48.png" ) , "title" : "Reminder" , "message" : "Your daily limit on " + options . hostname + " will be reached in " + options . timeLeft + " seconds." } ) ; }
Create and show a notification for an already expired session
Create and show a notification for an already expired session
//ClearNotificationWithUID(uid); //setTimeout(ClearNotificationWithUID, 10000, uid);