Notify user about unsecured context at quickUploader loading

This commit is contained in:
Bubka
2020-09-29 17:54:20 +02:00
parent c23d22e2b3
commit a98e05766b
4 changed files with 8 additions and 0 deletions

View File

@ -170,6 +170,10 @@
if (this.errorName === 'NotAllowedError') {
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 ) {