Skip to content

Commit 8bcca75

Browse files
authored
feat(FEC-11561): add option to set UUID (#5)
Set UUID of smartLib if passed in config
1 parent 90c3f6d commit 8bcca75

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ dist: xenial
44
language: node_js
55
node_js:
66
- 'node'
7+
env:
8+
global:
9+
- NODE_OPTIONS="--openssl-legacy-provider"
710

811
addons:
912
chrome: stable

src/broadpeak.js

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ class BroadPeak extends BasePlugin {
101101
this.eventManager.listen(this.player, this.player.Event.Core.ERROR, () => this.reset());
102102
this._attachSourceChange();
103103
SmartLib.getInstance().init(this.config.analyticsAddress, this.config.nanoCDNHost, this.config.broadpeakDomainNames);
104+
if (this.config.uuid) {
105+
SmartLib.getInstance().setUUID(this.config.uuid);
106+
}
104107
}
105108

106109
srcReady(): Promise<*> {

0 commit comments

Comments
 (0)