From d243bfd8cdb8a3110415e79214be621b46d7fdd3 Mon Sep 17 00:00:00 2001 From: Heerko Date: Fri, 23 Jul 2021 08:24:57 +0200 Subject: [PATCH] add woff2 support --- front/src/store/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/front/src/store/index.js b/front/src/store/index.js index 1102dd7..1b50faf 100644 --- a/front/src/store/index.js +++ b/front/src/store/index.js @@ -24,7 +24,7 @@ let toCSS = (message, currentStream) => { is_font = /

.+)\s*\n?{\n?(?(.*;\n?)+)}/gm let results = content.matchAll(regex); results = Array.from(results); @@ -74,6 +74,9 @@ let getFormat = (ext) => { case 'woff': fmt = "woff"; break; + case 'woff2': + fmt = "woff2"; + break; case 'eof': fmt = "embedded-opentype"; break;