Skip to content

Commit a57870a

Browse files
committed
be more guarded about hack check
1 parent ab135fc commit a57870a

File tree

1 file changed

+1
-1
lines changed
  • packages/driver/src/cypress

1 file changed

+1
-1
lines changed

packages/driver/src/cypress/cy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ const create = function (specWindow, Cypress, Cookies, state, config, log) {
10441044
Cypress.action('app:window:load', state('window'))
10451045

10461046
// FIXME: temporary hard-coded hack to get multidomain working
1047-
if (!autWindow.location.pathname.includes('multidomain-aut')) {
1047+
if (!autWindow?.location?.pathname?.includes('multidomain-aut')) {
10481048
// we are now stable again which is purposefully
10491049
// the last event we call here, to give our event
10501050
// listeners time to be invoked prior to moving on

0 commit comments

Comments
 (0)