Skip to content

Commit

Permalink
Tidy cpan.js
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Jul 15, 2015
1 parent 42881fb commit 9db1aea
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions root/static/js/cpan.js
Expand Up @@ -8,14 +8,13 @@ MetaCPAN.favs_to_check = {};
// provide localStorage shim to work around https://bugzilla.mozilla.org/show_bug.cgi?id=748620
try {
MetaCPAN.storage = window.localStorage;
}
catch (e) {
} catch (e) {
MetaCPAN.storage = {
getItem: function(k) {
return this["_"+k];
return this["_" + k];
},
setItem: function(k,v) {
return this["_"+k] = v;
setItem: function(k, v) {
return this["_" + k] = v;
},
};
}
Expand Down

0 comments on commit 9db1aea

Please sign in to comment.