Skip to content

Commit e38f978

Browse files
lint
1 parent 83f0dca commit e38f978

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

injected/unit-test/helpers/polyfill-process-globals.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function createLocationObject(href, frameAncestorsList = []) {
66
return {
77
href,
88
// @ts-expect-error - ancestorOrigins is not defined in the type definition
9-
ancestorOrigins: createDomStringList(frameAncestorsList)
9+
ancestorOrigins: createDomStringList(frameAncestorsList),
1010
};
1111
}
1212

@@ -47,13 +47,13 @@ export function polyfillProcessGlobals(defaultLocation = 'http://localhost:8080'
4747
// @ts-expect-error - document is not defined in the type definition
4848
globalThis.document = {
4949
referrer: defaultLocation,
50-
location: createLocationObject(defaultLocation, frameAncestorsList)
50+
location: createLocationObject(defaultLocation, frameAncestorsList),
5151
};
5252

5353
globalThis.location = createLocationObject(defaultLocation, frameAncestorsList);
5454

5555
globalThis.top = Object.assign({}, originalTop, {
56-
location: createLocationObject(defaultLocation, frameAncestorsList)
56+
location: createLocationObject(defaultLocation, frameAncestorsList),
5757
});
5858
if (topisNull) {
5959
globalThis.top = null;

injected/unit-test/utils.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
import { matchHostname, postDebugMessage, initStringExemptionLists, processConfig, satisfiesMinVersion, getTabHostname } from '../src/utils.js';
1+
import {
2+
matchHostname,
3+
postDebugMessage,
4+
initStringExemptionLists,
5+
processConfig,
6+
satisfiesMinVersion,
7+
getTabHostname,
8+
} from '../src/utils.js';
29
import { polyfillProcessGlobals } from './helpers/polyfill-process-globals.js';
310

411
polyfillProcessGlobals();

0 commit comments

Comments
 (0)