copy files
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export function htmlReady(fn: () => unknown): void {
|
||||
if (document.readyState != 'loading') {
|
||||
fn();
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', fn);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user