aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/misc
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-09 09:30:08 +0100
committerChocobozzz <me@florianbigard.com>2020-01-09 09:30:08 +0100
commit240458d0c95133bfb03a3f695a1b4e5cb63e20ef (patch)
treeca54294b9672f33225d561ddeab8b515e3d751c4 /client/src/app/shared/misc
parent6b0c3c7ca917ad09a011c2821f5bd1a2485aebca (diff)
downloadPeerTube-240458d0c95133bfb03a3f695a1b4e5cb63e20ef.tar.gz
PeerTube-240458d0c95133bfb03a3f695a1b4e5cb63e20ef.tar.zst
PeerTube-240458d0c95133bfb03a3f695a1b4e5cb63e20ef.zip
Remove ElementEvent
Diffstat (limited to 'client/src/app/shared/misc')
-rw-r--r--client/src/app/shared/misc/utils.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/client/src/app/shared/misc/utils.ts b/client/src/app/shared/misc/utils.ts
index 096fd61e2..3d1e906a2 100644
--- a/client/src/app/shared/misc/utils.ts
+++ b/client/src/app/shared/misc/utils.ts
@@ -1,13 +1,8 @@
1// Thanks: https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
2
3import { DatePipe } from '@angular/common' 1import { DatePipe } from '@angular/common'
4import { environment } from '../../../environments/environment' 2import { environment } from '../../../environments/environment'
5import { AuthService } from '../../core/auth' 3import { AuthService } from '../../core/auth'
6 4
7type ElementEvent = Omit<Event, 'target'> & { 5// Thanks: https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
8 target: HTMLElement
9}
10
11function getParameterByName (name: string, url: string) { 6function getParameterByName (name: string, url: string) {
12 if (!url) url = window.location.href 7 if (!url) url = window.location.href
13 name = name.replace(/[\[\]]/g, '\\$&') 8 name = name.replace(/[\[\]]/g, '\\$&')
@@ -194,7 +189,6 @@ function isXPercentInViewport (el: HTMLElement, percentVisible: number) {
194} 189}
195 190
196export { 191export {
197 ElementEvent,
198 sortBy, 192 sortBy,
199 durationToString, 193 durationToString,
200 lineFeedToHtml, 194 lineFeedToHtml,