Skip to content
Myr

refactor(helper/adapter): improve runtime detection (#2846)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* refactor: improve runtime detection detect runtime using navigator.userAgent when possible * fix typescript types * export knownUserAgents * add return type for checkUserAgentEquals

authored by Mohammed Taha · committed by GitHub · parent 7cbca60 · Browse files · 1 file+31 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+31 added−8 removed

  • other:+31 added−8 removed

1 file+31 added−8 removed

modified:src/helper/adapter/index.ts+31 added-8 removed