We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e59cae + fbb08f5 commit 38d5e12Copy full SHA for 38d5e12
lib/environment/LocalStorageKeyEnvironment.js
@@ -15,7 +15,7 @@ LocalStorageKeyEnvironment.prototype = Object.create(Environment.prototype);
15
LocalStorageKeyEnvironment.prototype.constructor = LocalStorageKeyEnvironment;
16
17
LocalStorageKeyEnvironment.prototype.getPath = function() {
18
- return window.localStorage.getItem(this.key);
+ return window.localStorage.getItem(this.key) || '';
19
};
20
21
LocalStorageKeyEnvironment.prototype.pushState = function(path, navigation) {
0 commit comments