Refactor getDeviceName() for readability (#6319)

* Refactor getDeviceName() for readability

Refactored a long if-else into a cleaner, easier to extend mapping

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Move BrowserName to the top of the file

Renamed deviceMappings to BrowserName and moved it under the appName declaration as requested

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
K. Kyle Puchkov
2025-01-07 01:28:47 +03:00
committed by GitHub
parent d7a6d8d4f0
commit 9329e2279d
2 changed files with 31 additions and 32 deletions

View File

@@ -93,6 +93,7 @@
- [Connor Smith](https://github.com/ConnorS1110)
- [iFraan](https://github.com/iFraan)
- [Ali](https://github.com/bu3alwa)
- [K. Kyle Puchkov](https://github.com/kepper104)
## Emby Contributors