aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/embed.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r--client/src/standalone/videos/embed.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index 36480922e..a6f0b2ed9 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -258,12 +258,8 @@ export class PeerTubeEmbed {
258 } 258 }
259 259
260 async init () { 260 async init () {
261 try { 261 this.userTokens = Tokens.load()
262 this.userTokens = Tokens.load() 262 await this.initCore()
263 await this.initCore()
264 } catch (e) {
265 console.error(e)
266 }
267 } 263 }
268 264
269 private initializeApi () { 265 private initializeApi () {
@@ -791,4 +787,8 @@ export class PeerTubeEmbed {
791} 787}
792 788
793PeerTubeEmbed.main() 789PeerTubeEmbed.main()
794 .catch(err => console.error('Cannot init embed.', err)) 790 .catch(err => {
791 (window as any).displayIncompatibleBrowser()
792
793 console.error('Cannot init embed.', err)
794 })