@financial-times/o-typography
Advanced tools
Comparing version 5.10.1 to 5.11.0
@@ -95,3 +95,3 @@ "use strict"; | ||
checkFontsLoaded() { | ||
return new RegExp(`(^|\s)${this.opts.fontLoadedCookieName}=1(;|$)`).test(document.cookie); | ||
return new RegExp("(^|s)".concat(this.opts.fontLoadedCookieName, "=1(;|$)")).test(document.cookie); | ||
} | ||
@@ -103,3 +103,3 @@ | ||
document.cookie = `${this.opts.fontLoadedCookieName}=1;domain=${domain};path=/;max-age=${60 * 60 * 24 * 7}`; | ||
document.cookie = "".concat(this.opts.fontLoadedCookieName, "=1;domain=").concat(domain, ";path=/;max-age=").concat(60 * 60 * 24 * 7); | ||
} | ||
@@ -109,3 +109,3 @@ | ||
this.fontConfigs.forEach(config => { | ||
this.typographyEl.classList.remove(`${this.opts.fontLoadingPrefix}${config.label}`); | ||
this.typographyEl.classList.remove("".concat(this.opts.fontLoadingPrefix).concat(config.label)); | ||
}); | ||
@@ -130,3 +130,3 @@ } | ||
}).load().then(() => { | ||
this.typographyEl.classList.remove(`${this.opts.fontLoadingPrefix}${fontConfig.label}`); | ||
this.typographyEl.classList.remove("".concat(this.opts.fontLoadingPrefix).concat(fontConfig.label)); | ||
}); | ||
@@ -133,0 +133,0 @@ }); |
@@ -6,5 +6,6 @@ { | ||
"dist/", | ||
"index.js", | ||
"browser.js", | ||
"src/", | ||
"main*", | ||
"!src/**/*.js", | ||
"main.scss", | ||
"img", | ||
@@ -26,3 +27,3 @@ "*.json", | ||
"name": "@financial-times/o-typography", | ||
"version": "5.10.1", | ||
"version": "5.11.0", | ||
"dependencies": { | ||
@@ -29,0 +30,0 @@ "fontfaceobserver": "^2.0.9", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
137566
30
289