diff options
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/Recipe.js | 6 | ||||
-rw-r--r-- | src/models/Service.js | 4 |
2 files changed, 5 insertions, 5 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 | } |
diff --git a/src/models/Service.js b/src/models/Service.js index 79181186a..fe56e5a76 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -2,7 +2,7 @@ import { autorun, computed, observable } from 'mobx'; | |||
2 | import { ipcRenderer } from 'electron'; | 2 | import { ipcRenderer } from 'electron'; |
3 | import { webContents } from '@electron/remote'; | 3 | import { webContents } from '@electron/remote'; |
4 | import normalizeUrl from 'normalize-url'; | 4 | import normalizeUrl from 'normalize-url'; |
5 | import path from 'path'; | 5 | import { join } from 'path'; |
6 | 6 | ||
7 | import { todosStore } from '../features/todos'; | 7 | import { todosStore } from '../features/todos'; |
8 | import { isValidExternalURL } from '../helpers/url-helpers'; | 8 | import { isValidExternalURL } from '../helpers/url-helpers'; |
@@ -230,7 +230,7 @@ export default class Service { | |||
230 | return this.iconUrl; | 230 | return this.iconUrl; |
231 | } | 231 | } |
232 | 232 | ||
233 | return path.join(this.recipe.path, 'icon.svg'); | 233 | return join(this.recipe.path, 'icon.svg'); |
234 | } | 234 | } |
235 | 235 | ||
236 | @computed get hasCustomIcon() { | 236 | @computed get hasCustomIcon() { |