forked from jsnbuchanan/crowd-funder-for-time-pwa
ran lint-fix
This commit is contained in:
@@ -216,14 +216,18 @@ export default class ContactQRScanShow extends Vue {
|
|||||||
|
|
||||||
// Check if scanning is supported first
|
// Check if scanning is supported first
|
||||||
if (!(await scanner.isSupported())) {
|
if (!(await scanner.isSupported())) {
|
||||||
this.error = "Camera access requires HTTPS. Please use a secure connection.";
|
this.error =
|
||||||
|
"Camera access requires HTTPS. Please use a secure connection.";
|
||||||
this.isScanning = false;
|
this.isScanning = false;
|
||||||
this.$notify({
|
this.$notify(
|
||||||
group: "alert",
|
{
|
||||||
type: "warning",
|
group: "alert",
|
||||||
title: "HTTPS Required",
|
type: "warning",
|
||||||
text: "Camera access requires a secure (HTTPS) connection"
|
title: "HTTPS Required",
|
||||||
}, 5000);
|
text: "Camera access requires a secure (HTTPS) connection",
|
||||||
|
},
|
||||||
|
5000,
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,12 +238,15 @@ export default class ContactQRScanShow extends Vue {
|
|||||||
this.error = "Camera permission denied";
|
this.error = "Camera permission denied";
|
||||||
this.isScanning = false;
|
this.isScanning = false;
|
||||||
// Show notification for better visibility
|
// Show notification for better visibility
|
||||||
this.$notify({
|
this.$notify(
|
||||||
group: "alert",
|
{
|
||||||
type: "warning",
|
group: "alert",
|
||||||
title: "Camera Access Required",
|
type: "warning",
|
||||||
text: "Camera permission denied"
|
title: "Camera Access Required",
|
||||||
}, 5000);
|
text: "Camera permission denied",
|
||||||
|
},
|
||||||
|
5000,
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user