mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
Show some more info when camera access is not possible (closes #437)
This commit is contained in:
parent
a8cf5ae9ab
commit
485eb262f9
|
|
@ -1606,3 +1606,6 @@ msgstr ""
|
||||||
|
|
||||||
msgid "Edit stock entry"
|
msgid "Edit stock entry"
|
||||||
msgstr ""
|
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 ""
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@ Grocy.Components.BarcodeScanner.StartScanning = function()
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
Grocy.FrontendHelpers.ShowGenericError("Error while initializing the barcode scanning library", error.message);
|
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()
|
setTimeout(function()
|
||||||
{
|
{
|
||||||
bootbox.hideAll();
|
bootbox.hideAll();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user