diff --git a/resources/views/header.blade.php b/resources/views/header.blade.php index 49579b14fb..9fbaca07d6 100644 --- a/resources/views/header.blade.php +++ b/resources/views/header.blade.php @@ -310,14 +310,14 @@ }); if (isStorageSupported()) { - var storage = localStorage.getItem('show_' + side + '_sidebar'); + var storage = localStorage.getItem('show_' + side + '_sidebar') || '0'; var toggled = $("#wrapper").hasClass("toggled-" + side) ? '1' : '0'; if (storage != toggled) { setTimeout(function() { $("#wrapper").toggleClass("toggled-" + side); $.post('{{ url('save_sidebar_state') }}?show_' + side + '=' + storage); - }, 100); + }, 200); } } }