Fix preload Roboto on older devices (#6165)

This commit is contained in:
Paulus Schoutsen 2020-06-14 21:08:10 -07:00 committed by GitHub
parent c51c80bf47
commit d6c85719c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
if (navigator.userAgent.indexOf("Android") === -1 &&
navigator.userAgent.indexOf("CrOS") === -1) {
function _pf(src, type) {
const el = document.createElement("link");
var el = document.createElement("link");
el.rel = "preload";
el.as = "font";
el.type = "font/woff2";