Skip to content

Commit

Permalink
Merge 7ebac5e into d05ebec
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonbroga committed Feb 14, 2018
2 parents d05ebec + 7ebac5e commit 405399a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/SmartBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ class SmartBanner extends Component {
if (this.state.type === 'windows') {
appId = meta.getAttribute('content');
} else {
appId = /app-id=([^\s,]+)/.exec(meta.getAttribute('content'))[1];
const content = /app-id=([^\s,]+)/.exec(meta.getAttribute('content'));

appId = (content && content[1]) ? content[1] : appId;
}

this.setState({
Expand Down

0 comments on commit 405399a

Please sign in to comment.