Skip to content

Commit 4dbf2c5

Browse files
authored
Update display-platform-specific-content.js
1 parent 204697e commit 4dbf2c5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

javascripts/display-platform-specific-content.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@ export default function displayPlatformSpecificContent () {
88
let platform = getDefaultPlatform() || parseUserAgent().os
99

1010
// adjust platform names to fit existing mac/windows/linux scheme
11-
if (!platform) platform = 'mac' // default to 'mac' on mobile
12-
if (platform === 'darwin') platform = 'mac'
11+
if (!platform) platform = 'linux'
1312
if (platform === 'ios') platform = 'mac'
14-
if (platform === 'android') platform = 'linux'
15-
if (platform === 'cros') platform = 'linux'
16-
if (platform.startsWith('win')) platform = 'windows'
1713

1814
const platformsInContent = findPlatformSpecificContent(platform)
1915

0 commit comments

Comments
 (0)