Skip to content

Commit

Permalink
fix: few typos
Browse files Browse the repository at this point in the history
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 <tim.gates@iress.com>
  • Loading branch information
timgates42 authored and pmvald committed Apr 21, 2023
1 parent 50f9635 commit c6a4271
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion context/main.js
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion docs/dev/04-public-api.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion static/context.js
Expand Up @@ -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)
}
Expand Down

0 comments on commit c6a4271

Please sign in to comment.