Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Make necessary changes
//
if ( app.defaults.smoothscroll ) {
app.provide('smoothscroll');
}
// Recover saved states
//
if ( app.defaults.saveState ) {
var states = app.state();
if ( states['sidebar.folded'] ) {
sidebar.fold();
}
if ( states['topbar.fixed'] ) {
topbar.fix();
}
}
}
// Make necessary changes
//
if ( app.defaults.smoothscroll ) {
app.provide('smoothscroll');
}
// Recover saved states
//
if ( app.defaults.saveState ) {
var states = app.state();
if ( states['sidebar.folded'] ) {
sidebar.fold();
}
if ( states['topbar.fixed'] ) {
topbar.fix();
}
}
}