Skip to content

Commit

Permalink
Fix opening two signin windows from WebChannel connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjduffy committed Mar 18, 2024
1 parent 33e7e0e commit 0815d10
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions devtools/server/actors/replay/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,15 @@ function initializeRecordingWebChannel() {
);
const localUrl = "http://localhost:8080/";

const replayio = /^https:\/\/.+.replay.io$/;
const previewBranches = /^https:\/\/.+-recordreplay.vercel.app$/;
// custom subdomains
registerWebChannel(/^https:\/\/.+.replay.io$/);
registerWebChannel(replayio);
// preview branches
registerWebChannel(/^https:\/\/.+-recordreplay.vercel.app$/);
registerWebChannel(pageUrl);
registerWebChannel(previewBranches);
if (!replayio.test(pageUrl) && !previewBranches.test(pageUrl)) {
registerWebChannel(pageUrl);
}
registerWebChannel(localUrl);

function registerWebChannel(url) {
Expand Down

0 comments on commit 0815d10

Please sign in to comment.