@contentful/experiences-visual-editor-react 1.40.1 → 1.40.2-beta.1
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/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/renderApp.js +8 -6
- package/dist/renderApp.js.map +1 -1
- package/package.json +4 -4
package/dist/renderApp.js
CHANGED
|
@@ -43717,10 +43717,11 @@ const CF_DEBUG_KEY$1 = 'cf_debug';
|
|
|
43717
43717
|
* SecurityError (e.g. Brave or Chromium with specific settings).
|
|
43718
43718
|
*/
|
|
43719
43719
|
const checkLocalStorageAvailability$1 = () => {
|
|
43720
|
-
if (typeof localStorage === 'undefined' || localStorage === null) {
|
|
43721
|
-
return false;
|
|
43722
|
-
}
|
|
43723
43720
|
try {
|
|
43721
|
+
// Even the typeof check can throw an error in an agressive browser like Brave (requires using the deprecated flag #block-all-cookies-toggle)
|
|
43722
|
+
if (typeof localStorage === 'undefined' || localStorage === null) {
|
|
43723
|
+
return false;
|
|
43724
|
+
}
|
|
43724
43725
|
// Attempt to set and remove an item to check if localStorage is enabled
|
|
43725
43726
|
const TEST_KEY = 'cf_test_local_storage';
|
|
43726
43727
|
localStorage.setItem(TEST_KEY, 'yes');
|
|
@@ -58738,10 +58739,11 @@ const CF_DEBUG_KEY = 'cf_debug';
|
|
|
58738
58739
|
* SecurityError (e.g. Brave or Chromium with specific settings).
|
|
58739
58740
|
*/
|
|
58740
58741
|
const checkLocalStorageAvailability = () => {
|
|
58741
|
-
if (typeof localStorage === 'undefined' || localStorage === null) {
|
|
58742
|
-
return false;
|
|
58743
|
-
}
|
|
58744
58742
|
try {
|
|
58743
|
+
// Even the typeof check can throw an error in an agressive browser like Brave (requires using the deprecated flag #block-all-cookies-toggle)
|
|
58744
|
+
if (typeof localStorage === 'undefined' || localStorage === null) {
|
|
58745
|
+
return false;
|
|
58746
|
+
}
|
|
58745
58747
|
// Attempt to set and remove an item to check if localStorage is enabled
|
|
58746
58748
|
const TEST_KEY = 'cf_test_local_storage';
|
|
58747
58749
|
localStorage.setItem(TEST_KEY, 'yes');
|