customize web app_ids for domains
This commit is contained in:
parent
ca5984cd79
commit
41e94d4ce8
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