Skip to content

fix: Fall back to the other ways, if the device Id is not available from get queries #302 - #303

Merged
jooohhn merged 2 commits into
amplitude:masterfrom
Locationvalue:master
Sep 25, 2020
Merged

jooohhn merged 2 commits into
amplitude:masterfrom
Locationvalue:master

Conversation

@aoshika-lv

@aoshika-lv aoshika-lv commented Sep 24, 2020 •

Copy link
Copy Markdown
Contributor

Make _getInitialDeviceId fall back to the other options/a base64Id, if the device Id is not available in the params via amp_device_id in case deviceIdFromUrlParam is true #302

Fixes #302

Please let me know, if there are any problems.

Checklist

  • Does your PR title have the correct title format
  • Does your PR have a breaking change? - No

…s not available in the params via amp_device_id. #302

@kelvin-lu kelvin-lu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks so much for doing this for us - we can publish a minor patch for this soon :)

@jooohhn jooohhn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small nit. Thank you for the PR!

Comment thread src/amplitude-client.js Outdated
@aoshika-lv

Copy link
Copy Markdown
Contributor Author

@kelvin-lu
Thank you so much!
I'm fixing it now, please wait for a while.

…s not available in the params via amp_device_id. #302
@aoshika-lv
aoshika-lv requested a review from jooohhn September 25, 2020 03:03
@aoshika-lv

Copy link
Copy Markdown
Contributor Author

@jooohhn
I've fixed it. Please re-review at your convenience. Thanks!

@jooohhn
jooohhn merged commit e0d39fd into amplitude:master Sep 25, 2020
github-actions Bot pushed a commit that referenced this pull request Sep 25, 2020
## [7.2.2](v7.2.1...v7.2.2) (2020-09-25)

### Bug Fixes

* Unavailable deviceId fallbacks ([#303](#303)) ([e0d39fd](e0d39fd)), closes [#302](https://github.com/amplitude/amplitude-javascript/issues/302)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 7.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

About the behavior that amp_device_id is not set when deviceIdFromUrlParam is true

3 participants