fix: cast as HTMLElement

This commit is contained in:
Bilawal Hameed
2020-07-06 14:29:28 +02:00
parent 180a08a5ec
commit 9a3b6d50fe
@@ -137,10 +137,10 @@ export const Reader = () => {
onCssReady({
docStorageURL,
onLoading: (dom: Element) => {
dom.style.setProperty('opacity', '0');
(dom as HTMLElement).style.setProperty('opacity', '0');
},
onLoaded: (dom: Element) => {
dom.style.removeProperty('opacity');
(dom as HTMLElement).style.removeProperty('opacity');
},
}),
]);