aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/embed.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-09-02 09:31:07 +0200
committerChocobozzz <me@florianbigard.com>2021-09-02 09:31:07 +0200
commitc21a0aa855f61daaca458e16b47f95278898beb4 (patch)
tree007e28debbf935f7115dbcf1db81168e1b59cac5 /client/src/standalone/videos/embed.ts
parentf4e75a6fd037c396b532e0cfc0a48d769e29f6ae (diff)
downloadPeerTube-c21a0aa855f61daaca458e16b47f95278898beb4.tar.gz
PeerTube-c21a0aa855f61daaca458e16b47f95278898beb4.tar.zst
PeerTube-c21a0aa855f61daaca458e16b47f95278898beb4.zip
Display a message in embed on unsupported web browser
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 })