Adding a special error message for non Safari browsers on iOS < 14.3
This commit is contained in:
parent
469cac9656
commit
9f09dc9df2
3 changed files with 30 additions and 1 deletions
8
front/src/Stores/Errors/WebviewOnOldIOS.ts
Normal file
8
front/src/Stores/Errors/WebviewOnOldIOS.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
export class WebviewOnOldIOS extends Error {
|
||||
static NAME = 'WebviewOnOldIOS';
|
||||
|
||||
constructor() {
|
||||
super('Your iOS version cannot use video/audio in the browser unless you are using Safari. Please switch to Safari or upgrade iOS to 14.3 or above.');
|
||||
this.name = WebviewOnOldIOS.NAME;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue