aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-02-28 10:41:23 +0100
committerChocobozzz <chocobozzz@cpy.re>2022-02-28 11:36:31 +0100
commita282e4d8a072cd56db8c393be7715bda420a243d (patch)
treea49f4951b7e780c0f731d574cb187da009b311b8 /client/src/app/helpers
parent5a8de57d574045c5f819b8c81fb0530a9e9a699f (diff)
downloadPeerTube-a282e4d8a072cd56db8c393be7715bda420a243d.tar.gz
PeerTube-a282e4d8a072cd56db8c393be7715bda420a243d.tar.zst
PeerTube-a282e4d8a072cd56db8c393be7715bda420a243d.zip
Continue user mute in ban modal PR
Diffstat (limited to 'client/src/app/helpers')
-rw-r--r--client/src/app/helpers/utils/url.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/app/helpers/utils/url.ts b/client/src/app/helpers/utils/url.ts
index b3cded8f4..08c27e3c1 100644
--- a/client/src/app/helpers/utils/url.ts
+++ b/client/src/app/helpers/utils/url.ts
@@ -13,6 +13,10 @@ function getAbsoluteAPIUrl () {
13 return absoluteAPIUrl 13 return absoluteAPIUrl
14} 14}
15 15
16function getAPIHost () {
17 return new URL(getAbsoluteAPIUrl()).host
18}
19
16function getAbsoluteEmbedUrl () { 20function getAbsoluteEmbedUrl () {
17 let absoluteEmbedUrl = environment.originServerUrl 21 let absoluteEmbedUrl = environment.originServerUrl
18 if (!absoluteEmbedUrl) { 22 if (!absoluteEmbedUrl) {
@@ -52,5 +56,6 @@ function objectToFormData (obj: any, form?: FormData, namespace?: string) {
52export { 56export {
53 objectToFormData, 57 objectToFormData,
54 getAbsoluteAPIUrl, 58 getAbsoluteAPIUrl,
59 getAPIHost,
55 getAbsoluteEmbedUrl 60 getAbsoluteEmbedUrl
56} 61}