Applying a local font globally (body, HN’s, etc.), results in an error.
Does not occur when applying directly on block or local classes.
Uncaught ReferenceError: localFonts is not defined
at index.js?ver=1.4.2-beta1:1:1245929
at Array.forEach (<anonymous>)
at S (index.js?ver=1.4.2-beta1:1:1243574)
at index.js?ver=1.4.2-beta1:1:1228918
at Array.forEach (<anonymous>)
at index.js?ver=1.4.2-beta1:1:1228165
at Array.forEach (<anonymous>)
at v (index.js?ver=1.4.2-beta1:1:1227942)
at index.js?ver=1.4.2-beta1:1:1195803
at ri (react-dom.min.js?ver=18.3.1:2:93198)
Hi @Louis
I have installed 1.4.2-beta on my existing Cwicly site, but I noticed the broken layout when I do so. I reverted to 1.4.1.8 and the layout is back to normal again.
What do I have to do when I install the beta version? I wanted to try the beta version.
I regenerated everything from the setting, but the layout is still broken.
Perhaps a screenshot will help identify exactly what the problem is.
We did have this issue on one site with custom breakpoints, that causes the canvas to not work correctly, but you may be referring to something completely different:
Yes. Applying a local font from the Globals breaks your entire styles.
This bug was probably introduced with the beta, when fixing another related bug (see changelog).
If you want to try out the beta, I suggest you to set it up on a fresh installation, or somewhere no globally applied local fonts are used.
Indeed, this error was unfortunately introduced before the release and not tested for…
We’ve added the safeguard and will have a fix in the next update.
Sorry about the inconvenience.
This issue was introduced in the beta and local fonts as @Marius explained.
We’ll have a fix for this in the next update.