Skip to content

Commit

Permalink
Fix os.platform bug
Browse files Browse the repository at this point in the history
When os.platform was returning iOS, it wasn't being treated as an apple device.
  • Loading branch information
bcomnes committed Nov 9, 2023
1 parent b1c0cd7 commit 77f58ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/internal/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const PERMISSION_CHANGE_EVENT = 'permissionchange'
*/

const isAndroid = os.platform() === 'android'
const isApple = os.platform() === 'darwin'
const isApple = os.platform() === 'darwin' || os.platform() === 'ios'
const isLinux = os.platform() === 'linux'

/**
Expand Down

0 comments on commit 77f58ac

Please sign in to comment.