From 72aa835e170f5dfa5fb7b78d50a5d097ea194ef6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 3 Feb 2021 11:44:43 +0100 Subject: Upgrade client dependencies --- client/src/app/helpers/utils.ts | 2 +- client/src/root-helpers/utils.ts | 2 +- client/src/sass/include/_variables.scss | 2 +- client/src/standalone/videos/embed.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src') diff --git a/client/src/app/helpers/utils.ts b/client/src/app/helpers/utils.ts index f96f26fff..b4e26d792 100644 --- a/client/src/app/helpers/utils.ts +++ b/client/src/app/helpers/utils.ts @@ -24,7 +24,7 @@ function populateAsyncUserVideoChannels ( authService: AuthService, channel: SelectChannelItem[] ) { - return new Promise(res => { + return new Promise(res => { authService.userInformationLoaded .subscribe( () => { diff --git a/client/src/root-helpers/utils.ts b/client/src/root-helpers/utils.ts index e32187ddb..06591b95e 100644 --- a/client/src/root-helpers/utils.ts +++ b/client/src/root-helpers/utils.ts @@ -57,7 +57,7 @@ function importModule (path: string) { } function wait (ms: number) { - return new Promise(res => { + return new Promise(res => { setTimeout(() => res(), ms) }) } diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index acdc8d05f..c8316473d 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss @@ -19,7 +19,7 @@ $main-color: hsl(24, 90%, 50%); $main-hover-color: lighten($main-color, 5%); $main-color-lighter: lighten($main-color, 10%); $main-color-lightest: lighten($main-color, 40%); -$secondary-color: hsl(187, 77, 34); +$secondary-color: hsl(187, 77%, 34%); $support-button: inherit; $support-button-heart: #e83e8c; diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 1709d44e7..cf4bc6f03 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -88,7 +88,7 @@ export class PeerTubeEmbed { .then((res: Response) => { if (res.status !== HttpStatusCode.UNAUTHORIZED_401) return res - const refreshingTokenPromise = new Promise((resolve, reject) => { + const refreshingTokenPromise = new Promise((resolve, reject) => { const clientId: string = peertubeLocalStorage.getItem(this.LOCAL_STORAGE_OAUTH_CLIENT_KEYS.CLIENT_ID) const clientSecret: string = peertubeLocalStorage.getItem(this.LOCAL_STORAGE_OAUTH_CLIENT_KEYS.CLIENT_SECRET) -- cgit v1.2.3