fix : opening link 1
This commit is contained in:
@@ -238,7 +238,9 @@ async function startCapture(params: Record<string, unknown>): Promise<unknown> {
|
||||
}
|
||||
|
||||
const url = requireUrl(params);
|
||||
const opened = await openUrl(browserSettings, url, report);
|
||||
const opened = await openUrl(browserSettings, url, report, {
|
||||
forceXWayland: watcher.snapshotSettings.fullscreen.enabled,
|
||||
});
|
||||
|
||||
const wait = Number(params.readyDelayMs ?? browserSettings.readyDelayMs);
|
||||
report('info', `Attente de ${Math.round(wait / 1000)} s avant le plein écran`);
|
||||
@@ -275,7 +277,9 @@ async function stopCapture(): Promise<unknown> {
|
||||
const action =
|
||||
browserSettings.onStop === 'close'
|
||||
? closeWindow(watcher.snapshotSettings.fullscreen.windowMatch, report)
|
||||
: blankPage(browserSettings, report);
|
||||
: blankPage(browserSettings, report, {
|
||||
forceXWayland: watcher.snapshotSettings.fullscreen.enabled,
|
||||
});
|
||||
closed = await action.catch((err: Error) => {
|
||||
report('warn', `Libération de la fenêtre impossible : ${err.message}`, 'command.failed');
|
||||
return `échec : ${err.message}`;
|
||||
@@ -297,7 +301,9 @@ async function runAction(action: AgentAction, params: Record<string, unknown>):
|
||||
case 'hotkey.fullscreen':
|
||||
return watcher.restoreFullscreen();
|
||||
case 'browser.open':
|
||||
return openUrl(browserSettings, requireUrl(params), report);
|
||||
return openUrl(browserSettings, requireUrl(params), report, {
|
||||
forceXWayland: watcher.snapshotSettings.fullscreen.enabled,
|
||||
});
|
||||
case 'browser.close':
|
||||
return closeWindow(watcher.snapshotSettings.fullscreen.windowMatch, report);
|
||||
case 'capture.start':
|
||||
|
||||
Reference in New Issue
Block a user