mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Display a message in embed on unsupported web browser
This commit is contained in:
parent
f4e75a6fd0
commit
c21a0aa855
2 changed files with 33 additions and 7 deletions
|
@ -258,12 +258,8 @@ export class PeerTubeEmbed {
|
|||
}
|
||||
|
||||
async init () {
|
||||
try {
|
||||
this.userTokens = Tokens.load()
|
||||
await this.initCore()
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
this.userTokens = Tokens.load()
|
||||
await this.initCore()
|
||||
}
|
||||
|
||||
private initializeApi () {
|
||||
|
@ -791,4 +787,8 @@ export class PeerTubeEmbed {
|
|||
}
|
||||
|
||||
PeerTubeEmbed.main()
|
||||
.catch(err => console.error('Cannot init embed.', err))
|
||||
.catch(err => {
|
||||
(window as any).displayIncompatibleBrowser()
|
||||
|
||||
console.error('Cannot init embed.', err)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue