]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/standalone/videos/embed.ts
Upgrade client dependencies
[github/Chocobozzz/PeerTube.git] / client / src / standalone / videos / embed.ts
index 1709d44e7a7cbde0afacfa80e992e080847d4446..cf4bc6f03d103c34b455d115206c2535cc995bbc 100644 (file)
@@ -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<void>((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)