mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
Use indexOf instead of includes because of old browsers.
This commit is contained in:
parent
a111be6db9
commit
d1c7829853
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class UsernameStep extends React.Component {
|
||||||
componentDidMount () {
|
componentDidMount () {
|
||||||
// Send info to analytics when we aren't on the standalone page.
|
// Send info to analytics when we aren't on the standalone page.
|
||||||
// If we are on the standalone join page, the page load will take care of this.
|
// If we are on the standalone join page, the page load will take care of this.
|
||||||
if (!window.location.pathname.includes('/join')) {
|
if (window.location.pathname.indexOf('/join') === -1) {
|
||||||
if (this.props.sendAnalytics) {
|
if (this.props.sendAnalytics) {
|
||||||
this.props.sendAnalytics('join-username-modal');
|
this.props.sendAnalytics('join-username-modal');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue