diff --git a/package.json b/package.json index 62e33218..0a43726a 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "ytpl": "^2.2.3" }, "devDependencies": { - "electron": "^12.1.0", + "electron": "^12.2.2", "electron-builder": "^22.10.5", "electron-devtools-installer": "^3.1.1", "electron-icon-maker": "0.0.5", diff --git a/plugins/sponsorblock/back.js b/plugins/sponsorblock/back.js index 775b1c0a..0f16f102 100644 --- a/plugins/sponsorblock/back.js +++ b/plugins/sponsorblock/back.js @@ -1,13 +1,6 @@ const fetch = require("node-fetch"); const is = require("electron-is"); -// see https://github.com/node-fetch/node-fetch/issues/568#issuecomment-932200523 -// will not be needed if project's electron version >= v15.1.0 (https://github.com/node-fetch/node-fetch/issues/568#issuecomment-932435180) -const https = require("https"); -const agent = new https.Agent({ - rejectUnauthorized: false, -}); - const defaultConfig = require("../../config/defaults"); const registerCallback = require("../../providers/song-info"); const { sortSegments } = require("./segments"); @@ -44,7 +37,6 @@ const fetchSegments = async (apiURL, categories) => { "Content-Type": "application/json", }, redirect: "follow", - agent // fixes error: 'CERT_HAS_EXPIRED' }); if (resp.status !== 200) { return []; diff --git a/yarn.lock b/yarn.lock index 2a52e14e..33cca1d9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3412,10 +3412,10 @@ electron-updater@^4.4.6: lodash.isequal "^4.5.0" semver "^7.3.5" -electron@^12.1.0: - version "12.1.0" - resolved "https://registry.yarnpkg.com/electron/-/electron-12.1.0.tgz#615a7f9dbb2fc79cc72361fba9f39d005c697bca" - integrity sha512-joQlYI/nTIrTUldO3GENZ2j225eKar9nTQBSEwSUSWN4h65QGDmXNQ7dbWPmLlkUQWtHhz8lXhFk30OLG9ZjLw== +electron@^12.2.2: + version "12.2.2" + resolved "https://registry.yarnpkg.com/electron/-/electron-12.2.2.tgz#9627594d6b5bb589f00355989d316b6542539e54" + integrity sha512-Oma/nIfvgql9JjAxdB9gQk//qxpJaI6PgMocYMiW4kFyLi+8jS6oGn33QG3FESS//cw09KRnWmA9iutuFAuXtw== dependencies: "@electron/get" "^1.0.1" "@types/node" "^14.6.2"