diff options
author | 2021-09-19 16:09:41 +0530 | |
---|---|---|
committer | 2021-09-19 16:09:41 +0530 | |
commit | 1fb81f2f77b22e874a77ea5ccf4876660239e16b (patch) | |
tree | 227e5d8e00dab2c4a9d31537583ad7e7a835375a | |
parent | 5.6.3-nightly.7 [skip ci] (diff) | |
download | ferdium-app-1fb81f2f77b22e874a77ea5ccf4876660239e16b.tar.gz ferdium-app-1fb81f2f77b22e874a77ea5ccf4876660239e16b.tar.zst ferdium-app-1fb81f2f77b22e874a77ea5ccf4876660239e16b.zip |
fix: remove reference to '@electron/remote' module (#1967)
-rw-r--r-- | CHANGELOG.md | 6 | ||||
-rw-r--r-- | src/api/server/ServerApi.js | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index fa97f0432..a625aeee4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
@@ -1,3 +1,9 @@ | |||
1 | # [v5.6.3-nightly.8](https://github.com/getferdi/ferdi/compare/v5.6.3-nightly.7...v5.6.3-nightly.8) (2021-09-20) | ||
2 | |||
3 | ### Under the hood | ||
4 | |||
5 | - Removed the final references to `@electron/remote` from the codebase (#1967) 💖 @vraravam | ||
6 | |||
1 | # [v5.6.3-nightly.7](https://github.com/getferdi/ferdi/compare/v5.6.3-nightly.4...v5.6.3-nightly.7) (2021-09-19) | 7 | # [v5.6.3-nightly.7](https://github.com/getferdi/ferdi/compare/v5.6.3-nightly.4...v5.6.3-nightly.7) (2021-09-19) |
2 | 8 | ||
3 | ### Services | 9 | ### Services |
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index fb0495b19..ef3d51796 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -11,7 +11,7 @@ import { | |||
11 | readJsonSync, | 11 | readJsonSync, |
12 | removeSync, | 12 | removeSync, |
13 | } from 'fs-extra'; | 13 | } from 'fs-extra'; |
14 | import { require as remoteRequire } from '@electron/remote'; | 14 | import fetch from 'electron-fetch'; |
15 | 15 | ||
16 | import ServiceModel from '../../models/Service'; | 16 | import ServiceModel from '../../models/Service'; |
17 | import RecipePreviewModel from '../../models/RecipePreview'; | 17 | import RecipePreviewModel from '../../models/RecipePreview'; |
@@ -45,8 +45,6 @@ const debug = require('debug')('Ferdi:ServerApi'); | |||
45 | 45 | ||
46 | module.paths.unshift(getDevRecipeDirectory(), getRecipeDirectory()); | 46 | module.paths.unshift(getDevRecipeDirectory(), getRecipeDirectory()); |
47 | 47 | ||
48 | const { default: fetch } = remoteRequire('electron-fetch'); | ||
49 | |||
50 | export default class ServerApi { | 48 | export default class ServerApi { |
51 | recipePreviews = []; | 49 | recipePreviews = []; |
52 | 50 | ||