diff --git a/resources/js/ext.uls.preferences.js b/resources/js/ext.uls.preferences.js index 71be07c7..f4f99ffb 100644 --- a/resources/js/ext.uls.preferences.js +++ b/resources/js/ext.uls.preferences.js @@ -137,6 +137,16 @@ // No value supplied, return value try { data = localStorage.getItem( key ); + if ( !data ) { + // Try to restore the old preferences, if any, if possible. + try { + data = JSON.parse( localStorage.getItem( 'jStorage' ) )['uls-preferences']; + // And try to remove it. + localStorage.removeItem( 'jStorage' ); + } catch ( e ) { + // Don't bother about it. + } + } } catch ( e ) { // Use cookie data = $.cookie( key ); }