Skip to content

Commit

Permalink
[FIX] OAuth (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Oct 18, 2018
1 parent cdd3030 commit 80bfa9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/views/OAuthView.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { connect } from 'react-redux';

import RocketChat from '../lib/rocketchat';
import I18n from '../i18n';
import { iconsMap } from '../Icons';

const userAgentAndroid = 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1';
const userAgent = Platform.OS === 'ios' ? 'UserAgent' : userAgentAndroid;
Expand All @@ -16,9 +15,8 @@ const userAgent = Platform.OS === 'ios' ? 'UserAgent' : userAgentAndroid;
export default class OAuthView extends React.PureComponent {
static navigatorButtons = {
leftButtons: [{
id: 'close',
title: I18n.t('Close'),
icon: Platform.OS === 'android' ? iconsMap.close : undefined
id: 'cancel',
title: I18n.t('Cancel')
}]
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 80bfa9f

Please sign in to comment.