async function checkStatus()
{
    let success = false;
    try {
        const response = await browser.runtime.sendNativeMessage("me.onchro.netcore", {
            command: "compatibility",
            extensionVersion: browser.runtime.getManifest().version
        });
        success = response.success && response.compatibilityStatus === "Ok"
    } catch {}

    browser.browserAction.setBadgeText({text: success ? "" : "!"});

    setTimeout(checkStatus, 10000);
}
// have the extension check the status of the native app
have the extension check the status of the native app
have the extension check the status of the native app
async function checkStatus()
{
    let success = false;
    try {
        const response = await browser.runtime.sendNativeMessage("me.onchro.netcore", {
            command: "compatibility",
            extensionVersion: browser.runtime.getManifest().version
        });
        success = response.success && response.compatibilityStatus === "Ok"
    } catch {}
    browser.browserAction.setBadgeText({text: success ? "" : "!"});
    setTimeout(checkStatus, 10000);
}
async function checkStatus ( ) { let success = false ; try { const response = await browser . runtime . sendNativeMessage ( "me.onchro.netcore" , { command : "compatibility" , extensionVersion : browser . runtime . getManifest ( ) . version } ) ; success = response . success && response . compatibilityStatus === "Ok" } catch { } browser . browserAction . setBadgeText ( { text : success ? "" : "!" } ) ; setTimeout ( checkStatus , 10000 ) ; }
have the extension check the status of the native app
have the extension check the status of the native app