Skip to content

Commit bbc6416

Browse files
Merge pull request #15 from contentstack/cache_hotfix
Resolved localstorage issue
2 parents 27bc4df + b0e3109 commit bbc6416

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/cache.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ export function get(key) {
1414
export function set(key, data) {
1515
try {
1616
if (typeof data === 'object') {
17-
console.log("storage", storage)
18-
storage.setItem(key, JSON.stringify(data));
19-
//localStorage.setItem("hello", "Smith");
17+
storage.setItem(key, JSON.stringify(data));
2018
} else {
21-
console.log("else")
2219
storage.setItem(key, data);
2320
}
2421
} catch (error) {

0 commit comments

Comments
 (0)