Skip to content

Commit 8fd7834

Browse files
authored
Add support for tvOS and watchOS
For tvOS and watchOS we do not need to prepend iOS string: Example from device types: > iPad-Pro, 10.3 > Apple-TV-1080p, tvOS 10.2 > Apple-Watch-38mm, watchOS 3.2
1 parent e260e60 commit 8fd7834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function getDeviceFromDeviceTypeId(devicetypeid) {
194194
}
195195

196196
// prepend iOS to runtime version, if necessary
197-
if (ret_obj.runtime.indexOf('iOS') === -1) {
197+
if (ret_obj.runtime.indexOf('OS') === -1) {
198198
ret_obj.runtime = util.format('iOS %s', ret_obj.runtime);
199199
}
200200

0 commit comments

Comments
 (0)