mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-08-18 17:04:56 -05:00
fix delay
This commit is contained in:
@@ -70,13 +70,6 @@ $(function () {
|
||||
}, 0);
|
||||
});
|
||||
|
||||
(function () {
|
||||
try {
|
||||
if (localStorage.getItem('ff3_sidebar_collapsed') === '1') {
|
||||
document.body.classList.add('sidebar-collapse');
|
||||
}
|
||||
} catch (_) {}
|
||||
})();
|
||||
|
||||
|
||||
// on submit of form, disable any button in form:
|
||||
|
||||
@@ -94,6 +94,16 @@
|
||||
|
||||
</head>
|
||||
<body class="skin-firefly-iii sidebar-mini hold-transition">
|
||||
<script type="text/javascript" nonce="{{ JS_NONCE }}">
|
||||
// get sidebar collapsed state from localStorage before the rest of the page renders
|
||||
(function () {
|
||||
try {
|
||||
if (localStorage.getItem('ff3_sidebar_collapsed') === '1') {
|
||||
document.body.classList.add('sidebar-collapse');
|
||||
}
|
||||
} catch (_) {}
|
||||
})();
|
||||
</script>
|
||||
<div class="wrapper" id="app">
|
||||
|
||||
<header class="main-header">
|
||||
|
||||
Reference in New Issue
Block a user