Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed Nov 26, 2013
1 parent 6da5e67 commit 7f9bee4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hawtio-web/src/main/webapp/app/fabric/js/fabricHelpers.ts
Expand Up @@ -758,10 +758,10 @@ module Fabric {
// lets try reverse engineer the user/pwd from the stored user/pwd
var jsonText = localStorage[url];
if (jsonText) {
var object = Wiki.parseJSON(jsonText);
if (object) {
username = object["username"];
password = object["password"];
var obj = Wiki.parseJson(jsonText);
if (obj) {
username = obj["username"];
password = obj["password"];
}
}
}
Expand Down

0 comments on commit 7f9bee4

Please sign in to comment.