From 5242a241102ff3918d08681866c7ce9d16bb268d Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Thu, 8 May 2025 15:51:00 +0800 Subject: [PATCH] Web: trigger camera start on view load --- src/views/ContactQRScanShowView.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/ContactQRScanShowView.vue b/src/views/ContactQRScanShowView.vue index 1543e89c..18a4b075 100644 --- a/src/views/ContactQRScanShowView.vue +++ b/src/views/ContactQRScanShowView.vue @@ -80,7 +80,7 @@
@@ -706,6 +706,10 @@ export default class ContactQRScanShow extends Vue { this.isMounted = true; document.addEventListener("pause", this.handleAppPause); document.addEventListener("resume", this.handleAppResume); + // Start scanning automatically when view is loaded, but only on web platform + if (!this.isNativePlatform) { + this.startScanning(); + } } beforeDestroy() {