feat: interpret current recording

This commit is contained in:
karishmas6
2024-06-09 01:06:58 +05:30
parent 7b4d213a06
commit 920d351ccf

View File

@@ -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;
}
};