diff --git a/src/Appwrite/Platform/Modules/Functions/Workers/Screenshots.php b/src/Appwrite/Platform/Modules/Functions/Workers/Screenshots.php index 3fce845324..b61ab8fa9d 100644 --- a/src/Appwrite/Platform/Modules/Functions/Workers/Screenshots.php +++ b/src/Appwrite/Platform/Modules/Functions/Workers/Screenshots.php @@ -154,8 +154,6 @@ class Screenshots extends Action $framework = Config::getParam('frameworks', [])[$site->getAttribute('framework', '')] ?? null; $sleep = $framework['screenshotSleep'] ?? 3000; - // Concurrency comes from the worker's coroutines (_APP_WORKER_MAX_COROUTINES), - // so the two themes are captured sequentially within a message. $captures = []; foreach (['screenshotLight' => 'light', 'screenshotDark' => 'dark'] as $key => $theme) { $captures[$key] = $screenshots->create( diff --git a/src/Appwrite/Screenshots/Client.php b/src/Appwrite/Screenshots/Client.php index 74fe9fb98c..096d737393 100644 --- a/src/Appwrite/Screenshots/Client.php +++ b/src/Appwrite/Screenshots/Client.php @@ -22,9 +22,6 @@ class Client /** * Capture a screenshot of a page and return the PNG bytes. * - * The browser service responds with raw image bytes on success and - * `{"error": message}` with a 4xx status on failure. - * * @param array $headers * @throws Exception on an error response * @throws ClientExceptionInterface on transport failure