1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Show default avatar on network error for comments

This commit is contained in:
Rigel Kent 2020-01-07 15:42:14 +01:00 committed by Chocobozzz
parent fbc77eb648
commit c511c3f010
5 changed files with 16 additions and 4 deletions

View file

@ -4,6 +4,10 @@ import { DatePipe } from '@angular/common'
import { environment } from '../../../environments/environment'
import { AuthService } from '../../core/auth'
type ElementEvent = Omit<Event, 'target'> & {
target: HTMLElement
}
function getParameterByName (name: string, url: string) {
if (!url) url = window.location.href
name = name.replace(/[\[\]]/g, '\\$&')
@ -190,6 +194,7 @@ function isXPercentInViewport (el: HTMLElement, percentVisible: number) {
}
export {
ElementEvent,
sortBy,
durationToString,
lineFeedToHtml,