Skip to content

Commit 36e262a

Browse files
nit fix :)
Co-authored-by: Filip Troníček <[email protected]>
1 parent 0434266 commit 36e262a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

components/server/src/analytics-controller.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,7 @@ export class AnalyticsController {
198198
hostname.endsWith("gitpod-dev.com") ||
199199
hostname.endsWith("gitpod-io-dev.com")
200200
) {
201-
const domain =
202-
hostname === "gitpod.io"
203-
? ".gitpod.io"
204-
: hostname === "gitpod-staging.com"
205-
? ".gitpod-staging.com"
206-
: hostname.endsWith("gitpod-dev.com")
207-
? ".gitpod-dev.com"
208-
: ".gitpod-io-dev.com";
201+
const domain = `.${hostname}`;
209202

210203
res.cookie("gitpod_hashed_user_id", hashedUserId, {
211204
domain: domain,

0 commit comments

Comments
 (0)