Commit 291ae53e authored by marc duez's avatar marc duez

model.js : code quality

parent 2a196724
......@@ -2171,12 +2171,11 @@ changeAlleleNotation: function(alleleNotation, update) {
* check browser local storage availability
* */
checkLocalStorage: function () {
this.localStorage
try {
this.localStorage = window['localStorage'];
var x = '__storage_test__';
this.localStorage.setItem(x, x);
this.localStorage.removeItem(x);
this.localStorage = window.localStorage
var x = '__storage_test__'
this.localStorage.setItem(x, x)
this.localStorage.removeItem(x)
}
catch(e) {
return e instanceof DOMException && (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment