From 28e80f4ad3dba1e62c963a77bd82854b3c8d4a4d Mon Sep 17 00:00:00 2001 From: Jacob Sanford Date: Tue, 21 Nov 2023 14:33:46 -0400 Subject: [PATCH] Allow for safari in chrome UA string --- .../digital_serial_page/src/Form/SerialPageViewerForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom/modules/digital_serial/modules/digital_serial_page/src/Form/SerialPageViewerForm.php b/custom/modules/digital_serial/modules/digital_serial_page/src/Form/SerialPageViewerForm.php index 282912ec..18254e86 100644 --- a/custom/modules/digital_serial/modules/digital_serial_page/src/Form/SerialPageViewerForm.php +++ b/custom/modules/digital_serial/modules/digital_serial_page/src/Form/SerialPageViewerForm.php @@ -222,7 +222,7 @@ public function buildForm(array $form, FormStateInterface $form_state, SerialTit * Determines if the current browser supports huge canvases. */ private static function browserSupportsHugeCanvas($browser) { - return !str_contains(strtolower($browser), 'safari'); + return !str_contains(strtolower($browser), 'safari') || str_contains(strtolower($browser), 'chrome'); } /**