Skip to content

Commit

Permalink
Merge branch 'hotfix_config_detection'
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeg committed Oct 14, 2024
2 parents fd1bf50 + 49868d7 commit ef67357
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/ocr/ocr_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1734,10 +1734,10 @@ function saveConfig(config) {

function hasConfig() {
const maybeConfig = localStorage.getItem('config');
if (!config) return false;
if (!maybeConfig) return false;

// minimal checks for validitu of the config object
// could add coimprehensive verification later
// minimal checks for validity of the config object
// could add comprehensive verification later
// for now guard against initial calibration not completed
try {
const parsed = JSON.parse(maybeConfig);
Expand Down

0 comments on commit ef67357

Please sign in to comment.