Skip to content

Commit

Permalink
window -> win
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbreiding committed Nov 29, 2023
1 parent 0dce76a commit b30b2ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
// needs to use the fully-qualified url or else when the baseUrl includes
// basic auth, the fetch fails with a security error
// see https://github.com/cypress-io/cypress/issues/28336
const promise = fetch(`${window.location.origin}/${namespace}/add-verified-command`, {
const promise = fetch(`${win.location.origin}/${namespace}/add-verified-command`, {
body: stringify({
args,
name: command.name,
Expand Down
3 changes: 3 additions & 0 deletions packages/server/test/unit/browsers/privileged-channel_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ describe('privileged channel', () => {
Function: { prototype: {
toString: Function.prototype.toString,
} },
location: {
origin: 'http://localhost:1234',
},
Math: {
imul: Math.imul,
},
Expand Down

0 comments on commit b30b2ba

Please sign in to comment.