mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 03:38:06 +02:00
Notify user about unsecured context at quickUploader loading
This commit is contained in:
parent
c23d22e2b3
commit
a98e05766b
@ -170,6 +170,10 @@
|
|||||||
if (this.errorName === 'NotAllowedError') {
|
if (this.errorName === 'NotAllowedError') {
|
||||||
this.$notify({ type: 'is-danger', text: this.errorText })
|
this.$notify({ type: 'is-danger', text: this.errorText })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.errorName === 'InsecureContextError') {
|
||||||
|
this.$notify({ type: 'is-warning', text: "HTTPS required for camera streaming" })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !this.errorName && !this.showStream ) {
|
if( !this.errorName && !this.showStream ) {
|
||||||
|
2
resources/js/langs/locales.js
vendored
2
resources/js/langs/locales.js
vendored
@ -157,6 +157,7 @@ export default {
|
|||||||
"not_readable": "Fail to load scanner. Is the camera already in use?",
|
"not_readable": "Fail to load scanner. Is the camera already in use?",
|
||||||
"no_cam_on_device": "No camera on this device",
|
"no_cam_on_device": "No camera on this device",
|
||||||
"secured_context_required": "Secure context required (HTTPS or localhost)",
|
"secured_context_required": "Secure context required (HTTPS or localhost)",
|
||||||
|
"https_required": "HTTPS required for camera streaming",
|
||||||
"camera_not_suitable": "Installed cameras are not suitable",
|
"camera_not_suitable": "Installed cameras are not suitable",
|
||||||
"stream_api_not_supported": "Stream API is not supported in this browser"
|
"stream_api_not_supported": "Stream API is not supported in this browser"
|
||||||
},
|
},
|
||||||
@ -447,6 +448,7 @@ export default {
|
|||||||
"not_readable": "Le scanner ne se charge pas. La caméra est-elle déjà utilisée ?",
|
"not_readable": "Le scanner ne se charge pas. La caméra est-elle déjà utilisée ?",
|
||||||
"no_cam_on_device": "Votre équipement ne dispose pas de caméra",
|
"no_cam_on_device": "Votre équipement ne dispose pas de caméra",
|
||||||
"secured_context_required": "Contexte sécurisé requis (HTTPS ou localhost)",
|
"secured_context_required": "Contexte sécurisé requis (HTTPS ou localhost)",
|
||||||
|
"https_required": "HTTPS requis pour utiliser la caméra",
|
||||||
"camera_not_suitable": "Votre équipement ne dispose pas d'une caméra adaptée",
|
"camera_not_suitable": "Votre équipement ne dispose pas d'une caméra adaptée",
|
||||||
"stream_api_not_supported": "L'API Stream n'est pas supportée par votre navigateur"
|
"stream_api_not_supported": "L'API Stream n'est pas supportée par votre navigateur"
|
||||||
},
|
},
|
||||||
|
@ -57,6 +57,7 @@ return [
|
|||||||
'not_readable' => 'Fail to load scanner. Is the camera already in use?',
|
'not_readable' => 'Fail to load scanner. Is the camera already in use?',
|
||||||
'no_cam_on_device' => 'No camera on this device',
|
'no_cam_on_device' => 'No camera on this device',
|
||||||
'secured_context_required' => 'Secure context required (HTTPS or localhost)',
|
'secured_context_required' => 'Secure context required (HTTPS or localhost)',
|
||||||
|
'https_required' => 'HTTPS required for camera streaming',
|
||||||
'camera_not_suitable' => 'Installed cameras are not suitable',
|
'camera_not_suitable' => 'Installed cameras are not suitable',
|
||||||
'stream_api_not_supported' => 'Stream API is not supported in this browser'
|
'stream_api_not_supported' => 'Stream API is not supported in this browser'
|
||||||
],
|
],
|
||||||
|
@ -57,6 +57,7 @@ return [
|
|||||||
'not_readable' => 'Le scanner ne se charge pas. La caméra est-elle déjà utilisée ?',
|
'not_readable' => 'Le scanner ne se charge pas. La caméra est-elle déjà utilisée ?',
|
||||||
'no_cam_on_device' => 'Votre équipement ne dispose pas de caméra',
|
'no_cam_on_device' => 'Votre équipement ne dispose pas de caméra',
|
||||||
'secured_context_required' => 'Contexte sécurisé requis (HTTPS ou localhost)',
|
'secured_context_required' => 'Contexte sécurisé requis (HTTPS ou localhost)',
|
||||||
|
'https_required' => 'HTTPS requis pour utiliser la caméra',
|
||||||
'camera_not_suitable' => 'Votre équipement ne dispose pas d\'une caméra adaptée',
|
'camera_not_suitable' => 'Votre équipement ne dispose pas d\'une caméra adaptée',
|
||||||
'stream_api_not_supported' => 'L\'API Stream n\'est pas supportée par votre navigateur'
|
'stream_api_not_supported' => 'L\'API Stream n\'est pas supportée par votre navigateur'
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user