mirror of https://github.com/vector-im/riot-web
Fix font preloading causing errors on non-root deployments (#22714)
parent
0baca38c31
commit
53ce8388f1
|
@ -52,8 +52,8 @@
|
||||||
<% for (var i=0; i < htmlWebpackPlugin.tags.headTags.length; i++) {
|
<% for (var i=0; i < htmlWebpackPlugin.tags.headTags.length; i++) {
|
||||||
var tag = htmlWebpackPlugin.tags.headTags[i];
|
var tag = htmlWebpackPlugin.tags.headTags[i];
|
||||||
var path = tag.attributes && tag.attributes.href;
|
var path = tag.attributes && tag.attributes.href;
|
||||||
if (path.indexOf("Inter") !== -1) { %>
|
if (path.includes("/Inter/")) { %>
|
||||||
<link rel="preload" as="font" href="<%= path %>" crossorigin="anonymous"/>
|
<link rel="preload" as="font" href=".<%= path %>" crossorigin="anonymous"/>
|
||||||
<% }
|
<% }
|
||||||
} %>
|
} %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue