@saooti/octopus-sdk 36.0.34 → 36.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -142,7 +142,6 @@ export const playerLogic = defineComponent({
|
|
|
142
142
|
if (!this.playerPodcast) return '';
|
|
143
143
|
const parameters = [];
|
|
144
144
|
parameters.push('origin=octopus');
|
|
145
|
-
parameters.push('listenerId='+this.getListenerId());
|
|
146
145
|
if (this.authOrgaId) {
|
|
147
146
|
parameters.push(
|
|
148
147
|
'distributorId=' + this.authOrgaId
|
|
@@ -176,14 +175,6 @@ export const playerLogic = defineComponent({
|
|
|
176
175
|
stopPlayer(): void {
|
|
177
176
|
this.playerPlay();
|
|
178
177
|
},
|
|
179
|
-
getListenerId(): string{
|
|
180
|
-
let listenerId = this.getCookie("octopus_listenerId");
|
|
181
|
-
if(!listenerId){
|
|
182
|
-
listenerId = new Date().valueOf().toString() + Math.random();
|
|
183
|
-
this.setCookie("octopus_listenerId", listenerId, ';domain='+this.getDomain());
|
|
184
|
-
}
|
|
185
|
-
return listenerId;
|
|
186
|
-
},
|
|
187
178
|
onError(): void {
|
|
188
179
|
if (this.playerPodcast && ""!==this.audioUrlToPlay && !this.listenError) {
|
|
189
180
|
this.listenError = true;
|