Merge pull request #99 from lbryio/install_id
customize web install_/app_ids for domains
This commit is contained in:
commit
3ceb09549c
3 changed files with 6 additions and 3 deletions
2
dist/bundle.es.js
vendored
2
dist/bundle.es.js
vendored
|
@ -1334,7 +1334,7 @@ function doInstallNew(appVersion, os = null, firebaseToken = null, callbackForUs
|
|||
}
|
||||
|
||||
lbryRedux.Lbry.status().then(status => {
|
||||
payload.app_id = status.installation_id;
|
||||
payload.app_id = domain && domain !== 'lbry.tv' ? (domain.replace(/[.]/gi, '') + status.installation_id).slice(0, 66) : status.installation_id;
|
||||
payload.node_id = status.lbry_id;
|
||||
lbryRedux.Lbry.version().then(version => {
|
||||
payload.daemon_version = version.lbrynet_version;
|
||||
|
|
2
dist/bundle.js
vendored
2
dist/bundle.js
vendored
|
@ -5047,7 +5047,7 @@ function doInstallNew(appVersion) {
|
|||
}
|
||||
|
||||
lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].status().then(function (status) {
|
||||
payload.app_id = status.installation_id;
|
||||
payload.app_id = domain && domain !== 'lbry.tv' ? (domain.replace(/[.]/gi, '') + status.installation_id).slice(0, 66) : status.installation_id;
|
||||
payload.node_id = status.lbry_id;
|
||||
lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].version().then(function (version) {
|
||||
payload.daemon_version = version.lbrynet_version;
|
||||
|
|
|
@ -61,7 +61,10 @@ export function doInstallNew(
|
|||
}
|
||||
|
||||
Lbry.status().then(status => {
|
||||
payload.app_id = status.installation_id;
|
||||
payload.app_id =
|
||||
domain && domain !== 'lbry.tv'
|
||||
? (domain.replace(/[.]/gi, '') + status.installation_id).slice(0, 66)
|
||||
: status.installation_id;
|
||||
payload.node_id = status.lbry_id;
|
||||
Lbry.version().then(version => {
|
||||
payload.daemon_version = version.lbrynet_version;
|
||||
|
|
Loading…
Reference in a new issue