jmuehlner commented on code in PR #778:
URL: https://github.com/apache/guacamole-client/pull/778#discussion_r1035373113
##########
guacamole/src/main/frontend/src/app/storage/services/localStorageService.js:
##########
@@ -119,10 +122,18 @@ angular.module('storage').provider('localStorageService',
[function localStorage
}
catch (ignore) {}
- // Pull and parse value from internal storage, if present
+ // Pull from internal storage, if present
var data = storedItems[key];
- if (data)
- return JSON.parse(data);
+ if (data) {
+
+ // Serialize to JSON if possible
+ try {
+ return JSON.stringify(value);
+ } catch (ignore) {}
Review Comment:
Well, that was a bunch of ado about nothing. Removed my changes to this
service.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]