diff --git a/history.ielte7.js b/history.ielte7.js index 553eac2..c4212f5 100644 --- a/history.ielte7.js +++ b/history.ielte7.js @@ -241,12 +241,12 @@ "state": { get: function() { if (typeof stateStorage[windowLocation.href] === 'object') { - return JSON.parse(JSON.stringify(stateStorage[windowLocation.href])); - } else if(typeof stateStorage[windowLocation.href] !== 'undefined') { - return stateStorage[windowLocation.href]; - } else { - return null; - } + return JSON.parse(JSON.stringify(stateStorage[windowLocation.href])); + } else if(typeof stateStorage[windowLocation.href] !== 'undefined') { + return stateStorage[windowLocation.href]; + } else { + return null; + } } } }; diff --git a/history.js b/history.js index 50265ff..36be6e2 100644 --- a/history.js +++ b/history.js @@ -241,12 +241,12 @@ "state": { get: function() { if (typeof stateStorage[windowLocation.href] === 'object') { - return JSON.parse(JSON.stringify(stateStorage[windowLocation.href])); - } else if(typeof stateStorage[windowLocation.href] !== 'undefined') { - return stateStorage[windowLocation.href]; - } else { - return null; - } + return JSON.parse(JSON.stringify(stateStorage[windowLocation.href])); + } else if(typeof stateStorage[windowLocation.href] !== 'undefined') { + return stateStorage[windowLocation.href]; + } else { + return null; + } } } };