Github user sebastianrothbucher commented on a diff in the pull request:
https://github.com/apache/couchdb-fauxton/pull/360#discussion_r29501552
--- Diff: app/core/utils.js ---
@@ -124,7 +124,41 @@ function ($, _) {
}
}
return data;
- }
+ },
+
+ sessionStorageGet: function (key) {
+ var data;
+ if (!window.sessionStorage) {
+ return;
+ }
+
+ data = window.sessionStorage.getItem(key);
+ try {
+ return JSON.parse(data);
+ } catch (e) {
+ return data;
+ }
+
+ return data;
--- End diff --
minor - but: unreachable statement (can just be left out?)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---