Title: Mobile devices controller reports all of my simulators as type "watch" · Issue #11 · NativeScript/mobile-devices-controller · GitHub
Open Graph Title: Mobile devices controller reports all of my simulators as type "watch" · Issue #11 · NativeScript/mobile-devices-controller
X Title: Mobile devices controller reports all of my simulators as type "watch" · Issue #11 · NativeScript/mobile-devices-controller
Description: I've traced it down to this part of code in the ios-controller: const stringType = /\w+[a-z]/g.test(level) && /\w+[a-z]/g.exec(level)[0]; let type = DeviceType.SIMULATOR; if (stringType) { type = stringType === "tv" ? DeviceType.TV : Dev...
Open Graph Description: I've traced it down to this part of code in the ios-controller: const stringType = /\w+[a-z]/g.test(level) && /\w+[a-z]/g.exec(level)[0]; let type = DeviceType.SIMULATOR; if (stringType) { type = s...
X Description: I've traced it down to this part of code in the ios-controller: const stringType = /\w+[a-z]/g.test(level) && /\w+[a-z]/g.exec(level)[0]; let type = DeviceType.SIMULATOR; if (stringType...
Opengraph URL: https://github.com/NativeScript/mobile-devices-controller/issues/11
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mobile devices controller reports all of my simulators as type \"watch\"","articleBody":"I've traced it down to this part of code in the ios-controller:\r\n```\r\nconst stringType = /\\w+[a-z]/g.test(level) \u0026\u0026 /\\w+[a-z]/g.exec(level)[0];\r\nlet type = DeviceType.SIMULATOR;\r\nif (stringType) {\r\n type = stringType === \"tv\" ? DeviceType.TV : DeviceType.WATCH;\r\n}\r\n```\r\n\r\n","author":{"url":"https://github.com/jnorkus","@type":"Person","name":"jnorkus"},"datePublished":"2019-03-28T13:07:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/11/mobile-devices-controller/issues/11"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c4b2a582-9caa-4ad4-fce2-9883f15f4b4f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC52:2C555C:104D09E:156D99F:6A5BC7A1 |
| html-safe-nonce | 0c77c18b1896208f498f29b447ded9b6cb711bc101cc8ffd0db44fdc8edd03ac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzUyOjJDNTU1QzoxMDREMDlFOjE1NkQ5OUY6NkE1QkM3QTEiLCJ2aXNpdG9yX2lkIjoiNTYxMjExMzE3NzY3MDgyOTk4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1bd87fade6a08d73569ad9e1a37d92e9f18add79ac3b4c63b7342296ac8be1ab |
| hovercard-subject-tag | issue:426481895 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/mobile-devices-controller/11/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5c7a43fbc5aa336103a34d6e4db9ae14bd5cfe448142e17f001697212b210461/NativeScript/mobile-devices-controller/issues/11 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5c7a43fbc5aa336103a34d6e4db9ae14bd5cfe448142e17f001697212b210461/NativeScript/mobile-devices-controller/issues/11 |
| og:image:alt | I've traced it down to this part of code in the ios-controller: const stringType = /\w+[a-z]/g.test(level) && /\w+[a-z]/g.exec(level)[0]; let type = DeviceType.SIMULATOR; if (stringType) { type = s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jnorkus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/mobile-devices-controller git https://github.com/NativeScript/mobile-devices-controller.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 105748269 |
| octolytics-dimension-repository_nwo | NativeScript/mobile-devices-controller |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105748269 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/mobile-devices-controller |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width