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:
parent
fbc77eb648
commit
c511c3f010
5 changed files with 16 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue