merge with branch issue-548

This commit is contained in:
Sebastian Sdorra
2014-04-06 16:07:43 +02:00

View File

@@ -574,9 +574,20 @@ Sonia.scm.Main = Ext.extend(Ext.util.Observable, {
});
Ext.onReady(function(){
function isLocalStorageAvailable(){
var mod = '__scm-manager';
try {
localStorage.setItem(mod, mod);
localStorage.removeItem(mod);
return true;
} catch(e) {
return false;
}
}
var stateProvider;
if ( typeof(Storage) !== "undefined" ){
if (isLocalStorageAvailable()){
if (debug){
console.debug('use localStore to save application state');
}