|
|
@@ -343,6 +343,8 @@ export default class CallStats {
|
|
343
|
343
|
* the <tt>userID</tt> aka endpoint ID, see CallStats docs for more info.
|
|
344
|
344
|
* @param {string} options.userName the <tt>userName</tt> part of
|
|
345
|
345
|
* the <tt>userID</tt> aka display name, see CallStats docs for more info.
|
|
|
346
|
+ * @param {String} options.configParams the set of parameters
|
|
|
347
|
+ * to enable/disable certain features in the library. See CallStats docs for more info.
|
|
346
|
348
|
*
|
|
347
|
349
|
*/
|
|
348
|
350
|
static initBackend(options) {
|
|
|
@@ -361,14 +363,10 @@ export default class CallStats {
|
|
361
|
363
|
CallStats.callStatsID = options.callStatsID;
|
|
362
|
364
|
CallStats.callStatsSecret = options.callStatsSecret;
|
|
363
|
365
|
|
|
364
|
|
- let configParams;
|
|
|
366
|
+ const configParams = { ...options.configParams };
|
|
365
|
367
|
|
|
366
|
368
|
if (options.applicationName) {
|
|
367
|
|
- configParams = {
|
|
368
|
|
- applicationVersion:
|
|
369
|
|
- `${options.applicationName} (${
|
|
370
|
|
- browser.getName()})`
|
|
371
|
|
- };
|
|
|
369
|
+ configParams.applicationVersion = `${options.applicationName} (${browser.getName()})`;
|
|
372
|
370
|
}
|
|
373
|
371
|
|
|
374
|
372
|
if (options.confID) {
|