From e51a8d43d9a9030ac28efa6d595bf0f4dc89785f Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Sat, 19 Feb 2022 14:03:33 +0100 Subject: [PATCH] Browser --- src/routes/sources/[id]/_Gitlab.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/sources/[id]/_Gitlab.svelte b/src/routes/sources/[id]/_Gitlab.svelte index 0a39fcf72..ba18ea5f2 100644 --- a/src/routes/sources/[id]/_Gitlab.svelte +++ b/src/routes/sources/[id]/_Gitlab.svelte @@ -5,6 +5,7 @@ import { page, session } from '$app/stores'; import { onMount } from 'svelte'; import { post } from '$lib/api'; + import { browser } from '$app/env'; const { id } = $page.params; let loading = false; @@ -127,8 +128,9 @@
- email (Allows read-only access to the user's primary email address using OpenID Connect)

For extra security, you can set Expire access tokens! -

Webhook URL: {window.location - .origin}/webhooks/gitlab +

Webhook URL: {browser + ? window.location.origin + : ''}/webhooks/gitlab
But if you will set a custom domain name for Coolify, use that instead." />