From c6a42710b40e81269f1e6c5d5bb55d01188a8872 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 27 Nov 2022 06:43:52 +1100 Subject: [PATCH] fix: few typos There are small typos in: - context/main.js - docs/dev/04-public-api.md - static/context.js Fixes: - Should read `permission` rather than `permisison`. - Should read `asynchronous` rather than `aynchronous`. Signed-off-by: Tim Gates --- context/main.js | 2 +- docs/dev/04-public-api.md | 2 +- static/context.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/context/main.js b/context/main.js index f24ffe810..da601a1d8 100644 --- a/context/main.js +++ b/context/main.js @@ -12,7 +12,7 @@ var callParentKarmaMethod = ContextKarma.getDirectCallParentKarmaMethod(parentWi // DEV: We avoid using this in Internet Explorer as they only support strings // https://caniuse.com/?search=postmessage var haveParentAccess = false -try { haveParentAccess = !!parentWindow.window } catch (err) { /* Ignore errors (likely permisison errors) */ } +try { haveParentAccess = !!parentWindow.window } catch (err) { /* Ignore errors (likely permission errors) */ } if (!haveParentAccess) { callParentKarmaMethod = ContextKarma.getPostMessageCallParentKarmaMethod(parentWindow) } diff --git a/docs/dev/04-public-api.md b/docs/dev/04-public-api.md index 095527ccd..e71e1b442 100644 --- a/docs/dev/04-public-api.md +++ b/docs/dev/04-public-api.md @@ -288,7 +288,7 @@ const karmaConfig = cfg.parseConfig( ``` The new behavior in the future will involve throwing exceptions instead of -exiting the process and aynchronous config files will be supported through the +exiting the process and asynchronous config files will be supported through the use of promises. ##### New Behavior diff --git a/static/context.js b/static/context.js index 94e1f24ae..aa8d39ea2 100644 --- a/static/context.js +++ b/static/context.js @@ -312,7 +312,7 @@ var callParentKarmaMethod = ContextKarma.getDirectCallParentKarmaMethod(parentWi // DEV: We avoid using this in Internet Explorer as they only support strings // https://caniuse.com/?search=postmessage var haveParentAccess = false -try { haveParentAccess = !!parentWindow.window } catch (err) { /* Ignore errors (likely permisison errors) */ } +try { haveParentAccess = !!parentWindow.window } catch (err) { /* Ignore errors (likely permission errors) */ } if (!haveParentAccess) { callParentKarmaMethod = ContextKarma.getPostMessageCallParentKarmaMethod(parentWindow) }