aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webview/lib/RecipeWebview.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webview/lib/RecipeWebview.js b/src/webview/lib/RecipeWebview.js
index 68e68e042..1d24326c5 100644
--- a/src/webview/lib/RecipeWebview.js
+++ b/src/webview/lib/RecipeWebview.js
@@ -67,9 +67,9 @@ class RecipeWebview {
67 * be an absolute path to the file 67 * be an absolute path to the file
68 */ 68 */
69 injectCSS(...files) { 69 injectCSS(...files) {
70 files.forEach((file) => { 70 files.forEach(async (file) => {
71 if (fs.existsSync(file)) { 71 if (await fs.exists(file)) {
72 const data = fs.readFileSync(file); 72 const data = await fs.readFile(file);
73 const styles = document.createElement('style'); 73 const styles = document.createElement('style');
74 styles.innerHTML = data.toString(); 74 styles.innerHTML = data.toString();
75 75