Skip to content

Commit c6a4271

Browse files
timgates42pmvald
authored andcommitted
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 <[email protected]>
1 parent 50f9635 commit c6a4271

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

context/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var callParentKarmaMethod = ContextKarma.getDirectCallParentKarmaMethod(parentWi
1212
// DEV: We avoid using this in Internet Explorer as they only support strings
1313
// https://caniuse.com/?search=postmessage
1414
var haveParentAccess = false
15-
try { haveParentAccess = !!parentWindow.window } catch (err) { /* Ignore errors (likely permisison errors) */ }
15+
try { haveParentAccess = !!parentWindow.window } catch (err) { /* Ignore errors (likely permission errors) */ }
1616
if (!haveParentAccess) {
1717
callParentKarmaMethod = ContextKarma.getPostMessageCallParentKarmaMethod(parentWindow)
1818
}

docs/dev/04-public-api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ const karmaConfig = cfg.parseConfig(
288288
```
289289

290290
The new behavior in the future will involve throwing exceptions instead of
291-
exiting the process and aynchronous config files will be supported through the
291+
exiting the process and asynchronous config files will be supported through the
292292
use of promises.
293293

294294
##### New Behavior

static/context.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ var callParentKarmaMethod = ContextKarma.getDirectCallParentKarmaMethod(parentWi
312312
// DEV: We avoid using this in Internet Explorer as they only support strings
313313
// https://caniuse.com/?search=postmessage
314314
var haveParentAccess = false
315-
try { haveParentAccess = !!parentWindow.window } catch (err) { /* Ignore errors (likely permisison errors) */ }
315+
try { haveParentAccess = !!parentWindow.window } catch (err) { /* Ignore errors (likely permission errors) */ }
316316
if (!haveParentAccess) {
317317
callParentKarmaMethod = ContextKarma.getPostMessageCallParentKarmaMethod(parentWindow)
318318
}

0 commit comments

Comments
 (0)