mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Begin to add avatar to actors
This commit is contained in:
parent
8b0d42ee37
commit
c5911fd347
41 changed files with 498 additions and 177 deletions
|
@ -1,5 +1,6 @@
|
|||
// Thanks: https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
|
||||
|
||||
import { environment } from '../../../environments/environment'
|
||||
import { AuthService } from '../../core/auth'
|
||||
|
||||
function getParameterByName (name: string, url: string) {
|
||||
|
@ -38,8 +39,19 @@ function populateAsyncUserVideoChannels (authService: AuthService, channel: any[
|
|||
})
|
||||
}
|
||||
|
||||
function getAbsoluteAPIUrl () {
|
||||
let absoluteAPIUrl = environment.apiUrl
|
||||
if (!absoluteAPIUrl) {
|
||||
// The API is on the same domain
|
||||
absoluteAPIUrl = window.location.origin
|
||||
}
|
||||
|
||||
return absoluteAPIUrl
|
||||
}
|
||||
|
||||
export {
|
||||
viewportHeight,
|
||||
getParameterByName,
|
||||
populateAsyncUserVideoChannels
|
||||
populateAsyncUserVideoChannels,
|
||||
getAbsoluteAPIUrl
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue