Skip to content

Commit

Permalink
Fix getCurrentValue
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa authored Feb 10, 2021
1 parent f13bbea commit 16f0ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function updateLocalStorage(name, value) {

function getCurrentValue(name) {
try {
window.localStorage.getItem(name);
return window.localStorage.getItem(name);
} catch(e) {
return null;
}
Expand Down

0 comments on commit 16f0ccd

Please sign in to comment.