Skip to content

Commit

Permalink
Simplify Safari check
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Nov 21, 2023
1 parent fb3066d commit 91a41b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

/**
Expand Down

0 comments on commit 91a41b8

Please sign in to comment.