-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a location port for service urls #2308
Conversation
@@ -2,14 +2,16 @@ | |||
if (window !== window.top) | |||
return; | |||
|
|||
var origin = location.protocol + '//' + location.host; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use the location.origin
property.
src/browser/connection/index.js
Outdated
@@ -53,6 +53,10 @@ export default class BrowserConnection extends EventEmitter { | |||
this.statusDoneUrl = `${gateway.domain}/browser/status-done/${this.id}`; | |||
this.initScriptUrl = `${gateway.domain}/browser/init-script/${this.id}`; | |||
|
|||
this.heartbeatRelativeUrl = `/browser/heartbeat/${this.id}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.heartbeatUrl = `${gateway.domain}${this.heartbeatRelativeUrl}`;
...
❌ Tests for the commit 5f5be31 have failed. See details: |
❌ Tests for the commit 2bdfc4f have failed. See details: |
@testcafe-build-bot \retest |
✅ Tests for the commit 2bdfc4f have passed. See details: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test here?
❌ Tests for the commit 20ee77f have failed. See details: |
}); | ||
|
||
test('Second test', async () => { | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a comment and describe why do we need the second test
✅ Tests for the commit 6b14992 have passed. See details: |
❌ Tests for the commit 13eb13e have failed. See details: |
@testcafe-build-bot \retest |
❌ Tests for the commit 13eb13e have failed. See details: |
@testcafe-build-bot \retest |
❌ Tests for the commit 13eb13e have failed. See details: |
❌ Tests for the commit 13eb13e have failed. See details: |
@testcafe-build-bot \retest |
❌ Tests for the commit 13eb13e have failed. See details: |
@testcafe-build-bot \retest |
❌ Tests for the commit 13eb13e have failed. See details: |
@testcafe-build-bot \retest |
❌ Tests for the commit 13eb13e have failed. See details: |
✅ Tests for the commit 13eb13e have passed. See details: |
* Use a location port for service urls * fix review issues * add test * fix lint * add comment
No description provided.