feat: interpret current recording
This commit is contained in:
@@ -37,3 +37,17 @@ export const getActiveBrowserId = async(): Promise<string> => {
|
||||
}
|
||||
};
|
||||
|
||||
export const interpretCurrentRecording = async(): Promise<boolean> => {
|
||||
try {
|
||||
const response = await axios.get('http://localhost:8080/record/interpret');
|
||||
if (response.status === 200) {
|
||||
return true;
|
||||
} else {
|
||||
throw new Error('Couldn\'t interpret current recording');
|
||||
}
|
||||
} catch(error: any) {
|
||||
console.log(error);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user