@searpent/react-image-annotate 2.3.0-cand-3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -225,9 +225,7 @@ var spellcheckEnabled = function () {
|
|
|
225
225
|
// Check for environment variable (works in Create React App, Storybook, etc.)
|
|
226
226
|
if (typeof process !== 'undefined' && process.env && process.env.REACT_APP_SPELLCHECK_ENABLED !== undefined) {
|
|
227
227
|
var envValue = process.env.REACT_APP_SPELLCHECK_ENABLED;
|
|
228
|
-
console.log('[Spellcheck] REACT_APP_SPELLCHECK_ENABLED from env:', envValue);
|
|
229
228
|
var enabledFromEnv = envValue === 'true' || envValue === '1';
|
|
230
|
-
console.log('[Spellcheck] Initial spellcheckEnabled from env:', enabledFromEnv);
|
|
231
229
|
return enabledFromEnv;
|
|
232
230
|
}
|
|
233
231
|
} catch (e) {
|
|
@@ -235,7 +233,6 @@ var spellcheckEnabled = function () {
|
|
|
235
233
|
console.warn('[Spellcheck] Failed to read REACT_APP_SPELLCHECK_ENABLED from process.env:', e);
|
|
236
234
|
}
|
|
237
235
|
|
|
238
|
-
console.log('[Spellcheck] REACT_APP_SPELLCHECK_ENABLED not set, defaulting spellcheckEnabled=false');
|
|
239
236
|
return false; // Default to disabled for performance
|
|
240
237
|
}(); // Function to enable/disable spellchecking
|
|
241
238
|
// Call this from your application to control spellchecking at runtime
|