HomePhabricator
Diffusion Comm f65a4f679994

[web] move checking for desktop Safari to constant

Description

[web] move checking for desktop Safari to constant

Summary:
I misunderstood @tomek's suggestion from here: https://phab.comm.dev/D8124?id=27491#inline-52847

Moving not only function result to const but entire logic as this will not change during app lifetime (this is not true for tests but this is handled separately)

Test Plan:

  1. Check if this const is truthy for Safari
  2. Check if this const is falsy for other browser (like chrome)

Reviewers: tomek

Reviewed By: tomek

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8226

Details

Provenance
kamilAuthored on Jun 15 2023, 4:31 AM
Reviewer
tomek
Differential Revision
D8226: [web] move checking for desktop Safari to constant
Parents
rCOMM4a4c8d8879a1: [desktop] add option to toggle shared worker dev dev-tools
Branches
Unknown
Tags
Unknown