Browse Source

hotfix

pull/11/head
rozetko 2 years ago
parent
commit
45c2e23dbc
  1. 3
      src/plugin_state.ts

3
src/plugin_state.ts

@ -177,12 +177,13 @@ class PluginState {
dataExporterApiUrl: string
): Promise<PluginConnectedStatusResponse | string> => {
try {
const resp = await queryApi<PluginConnectedStatusResponse>(`/status`, {
const resp = await queryApi<PluginConnectedStatusResponse>(`/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 {

Loading…
Cancel
Save