From 45c2e23dbc4da8ad10ba9b8cf792be2baf5068e6 Mon Sep 17 00:00:00 2001 From: rozetko Date: Fri, 20 Jan 2023 00:00:26 +0300 Subject: [PATCH] hotfix --- src/plugin_state.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin_state.ts b/src/plugin_state.ts index eccf9d5..0d7fae6 100644 --- a/src/plugin_state.ts +++ b/src/plugin_state.ts @@ -177,12 +177,13 @@ class PluginState { dataExporterApiUrl: string ): Promise => { try { - const resp = await queryApi(`/status`, { + const resp = await queryApi(`/connect`, { method: 'GET', params: { url: window.location.toString() }, }); // TODO: check if the server version is compatible with the plugin + // TODO: remove configuration if backend says that api key doesn't work if (resp.version) { return resp; } else {