mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Rename config css class
This commit is contained in:
@@ -29,8 +29,8 @@ function init() {
|
||||
|
||||
app.init(app);
|
||||
|
||||
$html.classList.add(config.CLASS_NAME.LOADED);
|
||||
$html.classList.add(config.CLASS_NAME.READY);
|
||||
$html.classList.remove(config.CLASS_NAME.LOADING);
|
||||
$html.classList.add(config.CSS_CLASS.LOADED);
|
||||
$html.classList.add(config.CSS_CLASS.READY);
|
||||
$html.classList.remove(config.CSS_CLASS.LOADING);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ export default config = Object.freeze({
|
||||
IS_DEV: env === 'development',
|
||||
|
||||
// CSS class names
|
||||
CLASS_NAME: {
|
||||
CSS_CLASS: {
|
||||
LOADING: 'is-loading',
|
||||
READY: 'is-ready',
|
||||
LOADED: 'is-loaded',
|
||||
|
||||
Reference in New Issue
Block a user