aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/Recipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/Recipe.js')
-rw-r--r--src/models/Recipe.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/models/Recipe.js b/src/models/Recipe.js
index 106b4a56a..92ff0d67d 100644
--- a/src/models/Recipe.js
+++ b/src/models/Recipe.js
@@ -1,7 +1,7 @@
1import emailParser from 'address-rfc2822'; 1import emailParser from 'address-rfc2822';
2import semver from 'semver'; 2import semver from 'semver';
3import fs from 'fs-extra'; 3import { pathExistsSync } from 'fs-extra';
4import path from 'path'; 4import { join } from 'path';
5 5
6export default class Recipe { 6export default class Recipe {
7 id = ''; 7 id = '';
@@ -98,6 +98,6 @@ export default class Recipe {
98 } 98 }
99 99
100 get hasDarkMode() { 100 get hasDarkMode() {
101 return fs.pathExistsSync(path.join(this.path, 'darkmode.css')); 101 return pathExistsSync(join(this.path, 'darkmode.css'));
102 } 102 }
103} 103}