From 04d8e9c0b65c107889f8fb3e41689f04c6a6096f Mon Sep 17 00:00:00 2001 From: meriadec Date: Thu, 8 Feb 2018 16:10:01 +0100 Subject: [PATCH] Fix font loading in builded Windows version --- src/styles/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/helpers.js b/src/styles/helpers.js index 192b2fd7..38caccc8 100644 --- a/src/styles/helpers.js +++ b/src/styles/helpers.js @@ -21,7 +21,7 @@ export const fontFace = ({ }) => ` @font-face { font-family: "${name}"; - src: url("${__DEV__ ? '' : __static}/fonts/${file}.woff2") format("woff2"); + src: url("${__DEV__ ? '' : __static.replace(/\\/g, '/')}/fonts/${file}.woff2") format("woff2"); font-style: ${style}; font-weight: ${weight}; }