From 9501a1897227267716b054925a7c0067f6566e29 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Thu, 1 Jun 2023 03:53:53 +1200 Subject: [PATCH] Remove API key --- html/src/app.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index 18323917..bbde247e 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -691,7 +691,6 @@ speechSynthesis.getVoices(); API.applyConfig = function (json) { var ref = { - clientApiKey: '', ...json }; this.cachedConfig = ref; @@ -1365,7 +1364,7 @@ speechSynthesis.getVoices(); } $app.saveCredentials = params; } - return this.call(`auth/user?apiKey=${this.cachedConfig.clientApiKey}`, { + return this.call('auth/user', { method: 'GET', headers: { Authorization: `Basic ${auth}` @@ -1678,7 +1677,7 @@ speechSynthesis.getVoices(); }; API.getCurrentUser = function () { - return this.call(`auth/user?apiKey=${this.cachedConfig.clientApiKey}`, { + return this.call('auth/user', { method: 'GET' }).then((json) => { var args = {