diff --git a/localization/strings.pot b/localization/strings.pot index f77077e4..211374d2 100644 --- a/localization/strings.pot +++ b/localization/strings.pot @@ -1606,3 +1606,6 @@ msgstr "" msgid "Edit stock entry" msgstr "" + +msgid "Camera access is on only possible when supported and allowed by your browser and when grocy is served via a secure (https://) connection" +msgstr "" diff --git a/public/viewjs/components/barcodescanner.js b/public/viewjs/components/barcodescanner.js index 82d3973e..b43b2f83 100644 --- a/public/viewjs/components/barcodescanner.js +++ b/public/viewjs/components/barcodescanner.js @@ -63,6 +63,7 @@ Grocy.Components.BarcodeScanner.StartScanning = function() if (error) { Grocy.FrontendHelpers.ShowGenericError("Error while initializing the barcode scanning library", error.message); + toastr.info(__t("Camera access is on only possible when supported and allowed by your browser and when grocy is served via a secure (https://) connection")); setTimeout(function() { bootbox.hideAll();