@oliasoft-open-source/react-ui-library 3.1.18 → 3.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26167,6 +26167,8 @@ const useFontsReady = () => {
|
|
|
26167
26167
|
const [isFontLoaded, setFontLoaded] = useState(false);
|
|
26168
26168
|
useEffect(() => {
|
|
26169
26169
|
const fontIsReady = async () => {
|
|
26170
|
+
if (!document.fonts)
|
|
26171
|
+
return;
|
|
26170
26172
|
await document.fonts.ready.then(() => setFontLoaded(true));
|
|
26171
26173
|
};
|
|
26172
26174
|
fontIsReady();
|