@blotoutio/edgetag-sdk-browser 0.6.8 → 0.6.9
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/index.js +16 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1047,19 +1047,24 @@
|
|
|
1047
1047
|
};
|
|
1048
1048
|
const handleCaptureStorage = (provider, key, persistType, location) => {
|
|
1049
1049
|
let data;
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1050
|
+
try {
|
|
1051
|
+
switch (location) {
|
|
1052
|
+
case 'cookie': {
|
|
1053
|
+
data = getCookieValue(key);
|
|
1054
|
+
break;
|
|
1055
|
+
}
|
|
1056
|
+
case 'local': {
|
|
1057
|
+
data = localStorage.getItem(key);
|
|
1058
|
+
break;
|
|
1059
|
+
}
|
|
1060
|
+
case 'session': {
|
|
1061
|
+
data = sessionStorage.getItem(key);
|
|
1062
|
+
}
|
|
1061
1063
|
}
|
|
1062
1064
|
}
|
|
1065
|
+
catch (_a) {
|
|
1066
|
+
return;
|
|
1067
|
+
}
|
|
1063
1068
|
if (!data) {
|
|
1064
1069
|
return;
|
|
1065
1070
|
}
|