From 743dcdb7b268baf13c0b92e0b399a07a00404322 Mon Sep 17 00:00:00 2001 From: Michael Neuendorf Date: Sun, 29 Mar 2020 13:35:34 +0200 Subject: [PATCH] Fix feature flag name --- public/viewjs/components/barcodescanner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/viewjs/components/barcodescanner.js b/public/viewjs/components/barcodescanner.js index e243520e..dc21c717 100644 --- a/public/viewjs/components/barcodescanner.js +++ b/public/viewjs/components/barcodescanner.js @@ -13,10 +13,10 @@ Grocy.Components.BarcodeScanner.CheckCapabilities = function() // Remove the torch button, if either the device can not torch or AutoTorchOn is set. var node = document.querySelector('.torch'); if (node) { - node.style.display = canTorch && !Grocy.FeatureFlags.FEATURE_FLAG_AUTO_TORCH_ON_WITH_CAMERA ? 'inline-block' : 'none'; + node.style.display = canTorch && !Grocy.FeatureFlags.GROCY_FEATURE_FLAG_AUTO_TORCH_ON_WITH_CAMERA ? 'inline-block' : 'none'; } // If AutoTorchOn is set, turn on the torch. - if (canTorch && Grocy.FeatureFlags.FEATURE_FLAG_AUTO_TORCH_ON_WITH_CAMERA) { + if (canTorch && Grocy.FeatureFlags.GROCY_FEATURE_FLAG_AUTO_TORCH_ON_WITH_CAMERA) { Grocy.Components.BarcodeScanner.TorchOn(track); }