⬆️ bump bud to v5.3.2 (#2976)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {domReady} from '@scripts/components';
|
||||
import {domReady} from '@roots/sage/client';
|
||||
|
||||
/**
|
||||
* Run the application when the DOM is ready.
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* Calls a supplied function once
|
||||
* document has loaded.
|
||||
*
|
||||
* @param {CallableFunction} onReady
|
||||
* @return {void}
|
||||
*/
|
||||
export const domReady = (onReady) => {
|
||||
window.requestAnimationFrame(function check() {
|
||||
document.body ? onReady() : window.requestAnimationFrame(check);
|
||||
});
|
||||
};
|
||||
@@ -1,6 +1,6 @@
|
||||
import {registerBlockStyle, unregisterBlockStyle} from '@wordpress/blocks';
|
||||
|
||||
import {domReady} from '@scripts/components';
|
||||
import {domReady} from '@roots/sage/client';
|
||||
|
||||
/**
|
||||
* Customize block styles
|
||||
|
||||
Reference in New Issue
Block a user