From fecb193ded813862338c3c6d8464aa4ac9b976be Mon Sep 17 00:00:00 2001 From: TC Date: Sat, 3 Apr 2021 11:34:23 +0200 Subject: [PATCH] Re-use default config to get base url in downloader --- plugins/downloader/front.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/downloader/front.js b/plugins/downloader/front.js index bf62e2d2..1e628e1a 100644 --- a/plugins/downloader/front.js +++ b/plugins/downloader/front.js @@ -1,5 +1,6 @@ const { contextBridge } = require("electron"); +const { defaultConfig } = require("../../config"); const { getSongMenu } = require("../../providers/dom-elements"); const { ElementFromFile, templatePath, triggerAction } = require("../utils"); const { ACTIONS, CHANNEL } = require("./actions.js"); @@ -31,7 +32,8 @@ const reinit = () => { } }; -const baseUrl = "https://music.youtube.com"; +const baseUrl = defaultConfig.url; + // TODO: re-enable once contextIsolation is set to true // contextBridge.exposeInMainWorld("downloader", { // download: () => {