chore: use onLoading and onLoaded

This commit is contained in:
Bilawal Hameed
2020-07-06 14:24:23 +02:00
parent 1040383d36
commit 180a08a5ec
@@ -136,10 +136,10 @@ export const Reader = () => {
}),
onCssReady({
docStorageURL,
onLoad: dom => {
onLoading: (dom: Element) => {
dom.style.setProperty('opacity', '0');
},
onReady: dom => {
onLoaded: (dom: Element) => {
dom.style.removeProperty('opacity');
},
}),