diff options
author | 2021-06-12 23:46:38 +0530 | |
---|---|---|
committer | 2021-06-12 20:16:38 +0200 | |
commit | c903ac821469a807a9958cdbd23ae77763db1435 (patch) | |
tree | ee9b299355602347e7c04f9d1361046729b89423 /src/webview/lib/RecipeWebview.js | |
parent | Fix active Todos service behaviour (#1481) (diff) | |
download | ferdium-app-c903ac821469a807a9958cdbd23ae77763db1435.tar.gz ferdium-app-c903ac821469a807a9958cdbd23ae77763db1435.tar.zst ferdium-app-c903ac821469a807a9958cdbd23ae77763db1435.zip |
Upgraded some modules (#1520)
Diffstat (limited to 'src/webview/lib/RecipeWebview.js')
-rw-r--r-- | src/webview/lib/RecipeWebview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webview/lib/RecipeWebview.js b/src/webview/lib/RecipeWebview.js index bef4b78ef..84ac45ecc 100644 --- a/src/webview/lib/RecipeWebview.js +++ b/src/webview/lib/RecipeWebview.js | |||
@@ -74,7 +74,7 @@ class RecipeWebview { | |||
74 | */ | 74 | */ |
75 | injectCSS(...files) { | 75 | injectCSS(...files) { |
76 | files.forEach(async (file) => { | 76 | files.forEach(async (file) => { |
77 | if (await fs.exists(file)) { | 77 | if (fs.pathExistsSync(file)) { |
78 | const data = await fs.readFile(file, 'utf8'); | 78 | const data = await fs.readFile(file, 'utf8'); |
79 | const styles = document.createElement('style'); | 79 | const styles = document.createElement('style'); |
80 | styles.innerHTML = data; | 80 | styles.innerHTML = data; |