[PR #570] [MERGED] Use navigitor.userAgent to determine isMobile #3178

Closed
opened 2026-02-28 20:37:40 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/570
Author: @shall0pass
Created: 1/23/2023
Status: Merged
Merged: 2/1/2023
Merged by: @j-f1

Base: masterHead: mobileDetection


📝 Commits (2)

📊 Changes

2 files changed (+6 additions, -8 deletions)

View changed files

📝 packages/desktop-client/src/components/FinancesApp.js (+2 -2)
📝 packages/desktop-client/src/util.js (+4 -6)

📄 Description

This is an alternate method to determine the isMobile status for using the responsive mobile view. This should respect the "Desktop site" option if used in a mobile browser.

Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent

Reference: https://www.tutorialspoint.com/javascript-how-to-detect-if-a-website-is-open-on-a-mobile-or-a-desktop


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/570 **Author:** [@shall0pass](https://github.com/shall0pass) **Created:** 1/23/2023 **Status:** ✅ Merged **Merged:** 2/1/2023 **Merged by:** [@j-f1](https://github.com/j-f1) **Base:** `master` ← **Head:** `mobileDetection` --- ### 📝 Commits (2) - [`9362c3f`](https://github.com/actualbudget/actual/commit/9362c3fbcd66ff703c10e2d66a4ff58958a69c1b) mobile detection - [`6557d97`](https://github.com/actualbudget/actual/commit/6557d9712ca45c5a9e98299f9d8499a6bc244b03) remove intermediate variable ### 📊 Changes **2 files changed** (+6 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/FinancesApp.js` (+2 -2) 📝 `packages/desktop-client/src/util.js` (+4 -6) </details> ### 📄 Description This is an alternate method to determine the isMobile status for using the responsive mobile view. This should respect the "Desktop site" option if used in a mobile browser. Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent Reference: https://www.tutorialspoint.com/javascript-how-to-detect-if-a-website-is-open-on-a-mobile-or-a-desktop --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 20:37:40 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#3178