Skip to content

Commit 06979b3

Browse files
committed
deepscan
1 parent e9249f1 commit 06979b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/sdk/frontend/public/javascripts/countly.views.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@
436436
},
437437
downloadConfig: function() {
438438
log("downloadConfig");
439-
var params = this.$store.getters["countlySDK/sdk/all"];
439+
var params = this.$store.getters["countlySDK/sdk/all"] || {};
440440
// we change bom_rqp to decimal percentage for sdk
441441
if (typeof params.bom_rqp !== "undefined") {
442442
params.bom_rqp = params.bom_rqp / 100;
@@ -454,7 +454,7 @@
454454
var data = {};
455455
data.v = SC_VER;
456456
data.t = Date.now();
457-
data.c = params || {};
457+
data.c = params;
458458
var configData = JSON.stringify(data, null, 2);
459459
var blob = new Blob([configData], { type: 'application/json' });
460460
var url = URL.createObjectURL(blob);

0 commit comments

Comments
 (0)