Differences From Artifact [8cd25765a3]:
- File gc_lang/fr/webext/content_scripts/api.js — part of check-in [99c62fdd3b] at 2020-03-19 08:42:53 on branch trunk — [fx][doc] Web API update (user: olr, size: 3762) [annotate] [blame] [check-ins using]
To Artifact [6ff89127c7]:
- File gc_lang/fr/webext/content_scripts/api.js — part of check-in [2bedf50a10] at 2020-03-21 15:13:47 on branch trunk — [fx] Web API: warn the webpage when the API script is loaded (user: olr, size: 3885) [annotate] [blame] [check-ins using]
| ︙ | |||
83 84 85 86 87 88 89 | 83 84 85 86 87 88 89 90 91 92 93 94 95 | + + + + + + |
let xEvent = new CustomEvent("GrammalecteCall", { detail: {sCommand: "getSpellSuggestions", sWord: sWord, sDestination: sDestination, sRequestId: sRequestId} });
document.dispatchEvent(xEvent);
} else {
console.log("[Grammalecte API] Error: one or several parameters aren’t string.");
}
}
}
/*
Tell to the webpage that the Grammalecte API is ready.
*/
document.dispatchEvent(new Event('GrammalecteLoaded'));
|