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 13bf0714..282912ec 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 !stripos($browser, 'Safari') === FALSE; + return !str_contains(strtolower($browser), 'safari'); } /**