customize web app_ids for domains

This commit is contained in:
jessop 2020-06-10 11:11:28 -04:00
parent ca5984cd79
commit 41e94d4ce8
3 changed files with 6 additions and 3 deletions

2
dist/bundle.es.js vendored
View file

@ -1334,7 +1334,7 @@ function doInstallNew(appVersion, os = null, firebaseToken = null, callbackForUs
} }
lbryRedux.Lbry.status().then(status => { 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; payload.node_id = status.lbry_id;
lbryRedux.Lbry.version().then(version => { lbryRedux.Lbry.version().then(version => {
payload.daemon_version = version.lbrynet_version; payload.daemon_version = version.lbrynet_version;

2
dist/bundle.js vendored
View file

@ -5047,7 +5047,7 @@ function doInstallNew(appVersion) {
} }
lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].status().then(function (status) { 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; payload.node_id = status.lbry_id;
lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].version().then(function (version) { lbry_redux__WEBPACK_IMPORTED_MODULE_0__["Lbry"].version().then(function (version) {
payload.daemon_version = version.lbrynet_version; payload.daemon_version = version.lbrynet_version;

View file

@ -61,7 +61,10 @@ export function doInstallNew(
} }
Lbry.status().then(status => { 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; payload.node_id = status.lbry_id;
Lbry.version().then(version => { Lbry.version().then(version => {
payload.daemon_version = version.lbrynet_version; payload.daemon_version = version.lbrynet_version;