From ea82fbf55684193c10e81545378a7656a0871840 Mon Sep 17 00:00:00 2001 From: PoziWorld Date: Sat, 7 Jul 2018 08:44:19 -0700 Subject: [PATCH] chore: Fixed typos in inline comments (#144) --- src/browser-polyfill.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser-polyfill.js b/src/browser-polyfill.js index 80dd81f..f9784fb 100644 --- a/src/browser-polyfill.js +++ b/src/browser-polyfill.js @@ -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) {