Skip to content

Commit

Permalink
Merge pull request #3922 from NoelDeMartin/MOBILE-4470
Browse files Browse the repository at this point in the history
MOBILE-4470: Tweaks
  • Loading branch information
dpalou authored Feb 1, 2024
2 parents a81b97a + 2e4293a commit 88931bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion local_moodleappbehat/tests/behat/behat_app_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ protected function prepare_browser(array $options = []) {

$this->runtime_js("init($initoptions)");
} catch (Exception $error) {
throw new DriverException('Moodle App not running or not running on Automated mode.');
throw new DriverException('Moodle App not running or not running on Automated mode: ' . $error->getMessage());
}

if ($restart) {
Expand Down
3 changes: 2 additions & 1 deletion src/core/services/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ export class CorePlatformService extends Platform {
* @returns Whether the device is configured to reduce motion.
*/
prefersReducedMotion(): boolean {
return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
// Default to reduced motion in devices that don't support this CSS property.
return !window.matchMedia('(prefers-reduced-motion: no-preference)').matches;
}

/**
Expand Down

0 comments on commit 88931bd

Please sign in to comment.