INNER CODE UNIT · JavaScript

sendUpdateProgress

mozilla/firefox-translations · extension/controller/backgroundScript.js:805

const sendUpdateProgress = (tabId, payload) => {

    /*
     * let's invoke the experiment api in order to update the
     * model download progress in the appropiate infobar
     */
    // first we localize the message.
    // eslint-disable-next-line no-case-declarations
    let localizedMessage = getLocalizedMessage(payload);
    if (tabId >0) {
      if (platform === "android") {
        browser.tabs.sendMessage(
          tabId,
          {
            command: "updateProgress",
            progressMessage: localizedMessage
          }
        );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…