Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0041f29

Browse filesBrowse files
author
jed apostol
committed
replaced condition
1 parent e5661b0 commit 0041f29
Copy full SHA for 0041f29

File tree

Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-4
lines changed

‎js/history.js

Copy file name to clipboardExpand all lines: js/history.js
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ var Josh = Josh || {};
4141
}
4242
}
4343
function save() {
44-
try {
45-
_storage.setItem(_key, JSON.stringify(_history));
46-
} catch(e) {
47-
_console.log("Error accessing storage");
44+
if (_storage) {
45+
try {
46+
_storage.setItem(_key, JSON.stringify(_history));
47+
} catch(e) {
48+
_console.log("Error accessing storage");
49+
}
4850
}
4951
}
5052

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.