mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-25 23:35:43 +00:00
fix(recording): warn when cursor hiding fails
This commit is contained in:
@@ -1544,7 +1544,10 @@ export function useScreenRecorder(): UseScreenRecorderReturn {
|
||||
|
||||
if (browserCursorPolicy.hideOsCursorBeforeRecording) {
|
||||
try {
|
||||
await window.electronAPI.hideOsCursor?.();
|
||||
const hideCursorResult = await window.electronAPI.hideOsCursor?.();
|
||||
if (hideCursorResult && !hideCursorResult.success) {
|
||||
console.warn("Could not hide OS cursor before recording.", hideCursorResult);
|
||||
}
|
||||
} catch {
|
||||
console.warn("Could not hide OS cursor before recording.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user