component/alarm.js
/*
    Create and show an expiration notification warning
*/
Create and show an expiration notification warning
Create and show an expiration notification warning
async function onDailyLimitReached(options) {
    var uid = UID_PREFIX_EXPIRED + options.hostname;
    browser.notifications.create(uid, {
        "type": "basic",
        "iconUrl": browser.runtime.getURL("icons/font-awesome_4-7-0_hourglass-half_48.png"),
        "title": "Daily limit reached",
        "message": "You've reached your daily limit for " + options.hostname + "."
    });
    if (options.blockAfter === true) {
        blockHostname(options.hostname, "ALARM_TIMEOUT");
    }
}
async function onDailyLimitReached ( options ) { var uid = UID_PREFIX_EXPIRED + options . hostname ; browser . notifications . create ( uid , { "type" : "basic" , "iconUrl" : browser . runtime . getURL ( "icons/font-awesome_4-7-0_hourglass-half_48.png" ) , "title" : "Daily limit reached" , "message" : "You've reached your daily limit for " + options . hostname + "." } ) ; if ( options . blockAfter === true ) { blockHostname ( options . hostname , "ALARM_TIMEOUT" ) ; } }
Create and show an expiration notification warning
Create and show an expiration notification warning
//ClearNotificationWithUID(uid); //setTimeout(ClearNotificationWithUID, 30000, uid);