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())