diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webview/lib/RecipeWebview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webview/lib/RecipeWebview.js b/src/webview/lib/RecipeWebview.js index a9a3a1f51..bb2052107 100644 --- a/src/webview/lib/RecipeWebview.js +++ b/src/webview/lib/RecipeWebview.js | |||
@@ -75,9 +75,9 @@ class RecipeWebview { | |||
75 | injectCSS(...files) { | 75 | injectCSS(...files) { |
76 | files.forEach(async (file) => { | 76 | files.forEach(async (file) => { |
77 | if (await fs.exists(file)) { | 77 | if (await fs.exists(file)) { |
78 | const data = await fs.readFile(file); | 78 | const data = await fs.readFile(file, 'utf8'); |
79 | const styles = document.createElement('style'); | 79 | const styles = document.createElement('style'); |
80 | styles.innerHTML = data.toString(); | 80 | styles.innerHTML = data; |
81 | 81 | ||
82 | document.querySelector('head').appendChild(styles); | 82 | document.querySelector('head').appendChild(styles); |
83 | 83 | ||