chore: Fixed typos in inline comments (#144)
This commit is contained in:
parent
33c2afb578
commit
ea82fbf556
|
@ -173,7 +173,7 @@ if (typeof browser === "undefined") {
|
||||||
* Wraps an existing method of the target object, so that calls to it are
|
* Wraps an existing method of the target object, so that calls to it are
|
||||||
* intercepted by the given wrapper function. The wrapper function receives,
|
* intercepted by the given wrapper function. The wrapper function receives,
|
||||||
* as its first argument, the original `target` object, followed by each of
|
* 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
|
* @param {object} target
|
||||||
* The original target object that the wrapped method belongs to.
|
* The original target object that the wrapped method belongs to.
|
||||||
|
@ -447,7 +447,7 @@ if (typeof browser === "undefined") {
|
||||||
|
|
||||||
const wrappedSendMessageCallback = ({reject, resolve}, reply) => {
|
const wrappedSendMessageCallback = ({reject, resolve}, reply) => {
|
||||||
if (chrome.runtime.lastError) {
|
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.
|
// the promise to undefined as in Firefox.
|
||||||
// See https://github.com/mozilla/webextension-polyfill/issues/130
|
// See https://github.com/mozilla/webextension-polyfill/issues/130
|
||||||
if (chrome.runtime.lastError.message === CHROME_SEND_MESSAGE_CALLBACK_NO_RESPONSE_MESSAGE) {
|
if (chrome.runtime.lastError.message === CHROME_SEND_MESSAGE_CALLBACK_NO_RESPONSE_MESSAGE) {
|
||||||
|
|
Loading…
Reference in New Issue