mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-06 10:06:21 +02:00
merge with branch issue-548
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user