@financial-times/o-typography
Advanced tools
Comparing version 5.11.5 to 5.11.6
@@ -8,4 +8,6 @@ "use strict"; | ||
const FontFaceObserver = require("fontfaceobserver/fontfaceobserver.standalone.js"); | ||
var _fontfaceobserverStandalone = _interopRequireDefault(require("fontfaceobserver/fontfaceobserver.standalone.js")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
class Typography { | ||
@@ -125,3 +127,3 @@ constructor(typographyEl, opts) { | ||
const fontPromises = this.fontConfigs.map(fontConfig => { | ||
return new FontFaceObserver(fontConfig.family, { | ||
return new _fontfaceobserverStandalone.default(fontConfig.family, { | ||
weight: fontConfig.weight | ||
@@ -128,0 +130,0 @@ }).load().then(() => { |
@@ -26,3 +26,3 @@ { | ||
"name": "@financial-times/o-typography", | ||
"version": "5.11.5", | ||
"version": "5.11.6", | ||
"dependencies": { | ||
@@ -29,0 +29,0 @@ "fontfaceobserver": "^2.0.9", |
138032
290