Files
sage/resources/scripts/app.js
Kelly Mears 69dfbfc65c Replace Laravel Mix with Bud (#2643)
Co-authored-by: QWp6t <hi@qwp6t.me>
Co-authored-by: Ben Word <ben@benword.com>
2021-11-21 23:53:01 -06:00

18 lines
372 B
JavaScript

import {domReady} from '@scripts/components';
/**
* Remove `.no-js` from document body
* when DOM has loaded.
*/
domReady(() => {
document.body.classList.contains('no-js') &&
document.body.classList.remove('no-js');
});
/**
* Accept module updates
*
* @see https://webpack.js.org/api/hot-module-replacement
*/
import.meta.webpackHot?.accept(console.error);