diff options
Diffstat (limited to 'src/models/Recipe.js')
-rw-r--r-- | src/models/Recipe.js | 6 |
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 @@ | |||
1 | import emailParser from 'address-rfc2822'; | 1 | import emailParser from 'address-rfc2822'; |
2 | import semver from 'semver'; | 2 | import semver from 'semver'; |
3 | import fs from 'fs-extra'; | 3 | import { pathExistsSync } from 'fs-extra'; |
4 | import path from 'path'; | 4 | import { join } from 'path'; |
5 | 5 | ||
6 | export default class Recipe { | 6 | export 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 | } |