chore: Fixed typos in inline comments (#144)

This commit is contained in:
PoziWorld 2018-07-07 08:44:19 -07:00 committed by Luca Greco
parent 33c2afb578
commit ea82fbf556
1 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ if (typeof browser === "undefined") {
* Wraps an existing method of the target object, so that calls to it are
* intercepted by the given wrapper function. The wrapper function receives,
* as its first argument, the original `target` object, followed by each of
* the arguments passed to the orginal method.
* the arguments passed to the original method.
*
* @param {object} target
* The original target object that the wrapped method belongs to.
@ -447,7 +447,7 @@ if (typeof browser === "undefined") {
const wrappedSendMessageCallback = ({reject, resolve}, reply) => {
if (chrome.runtime.lastError) {
// Detect when none of the listers replied to the sendMessage call and resolve
// Detect when none of the listeners replied to the sendMessage call and resolve
// the promise to undefined as in Firefox.
// See https://github.com/mozilla/webextension-polyfill/issues/130
if (chrome.runtime.lastError.message === CHROME_SEND_MESSAGE_CALLBACK_NO_RESPONSE_MESSAGE) {