add JSDoc for `ready` function
This commit is contained in:
parent
5bd922d109
commit
fef5d77443
|
@ -1,3 +1,6 @@
|
||||||
|
/**
|
||||||
|
* @param {Function} callback
|
||||||
|
*/
|
||||||
export const ready = (callback) => {
|
export const ready = (callback) => {
|
||||||
if (document.readyState !== 'loading') {
|
if (document.readyState !== 'loading') {
|
||||||
callback();
|
callback();
|
||||||
|
|
Loading…
Reference in New Issue