From facbbf6acf41c3a4254071e37a00912f558acd7f Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sun, 25 Sep 2022 01:39:27 +0200 Subject: [PATCH] Replace jquery $.param with native URLSearchParams (#2613) --- src/renderer/store/modules/invidious.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/renderer/store/modules/invidious.js b/src/renderer/store/modules/invidious.js index 9631932e..00a99441 100644 --- a/src/renderer/store/modules/invidious.js +++ b/src/renderer/store/modules/invidious.js @@ -1,4 +1,3 @@ -import $ from 'jquery' import fs from 'fs' const state = { @@ -71,7 +70,7 @@ const actions = { invidiousAPICall({ state }, payload) { return new Promise((resolve, reject) => { - const requestUrl = state.currentInvidiousInstance + '/api/v1/' + payload.resource + '/' + payload.id + '?' + $.param(payload.params) + const requestUrl = state.currentInvidiousInstance + '/api/v1/' + payload.resource + '/' + payload.id + '?' + new URLSearchParams(payload.params).toString() fetch(requestUrl) .then((response) => response.json())