Skip to content

Commit e551a70

Browse files
committed
using constant for storage name
1 parent cc396d9 commit e551a70

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

dist/breinify-api.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14140,7 +14140,7 @@ dependencyScope.jQuery = $;;
1414014140
BreinifyUtil.storage.init({});
1414114141

1414214142
// get the information from it
14143-
this.splitTestData = BreinifyUtil.storage.get('split-test-data');
14143+
this.splitTestData = BreinifyUtil.storage.get(BreinifyUtil.storage.splitTestDataInstanceName);
1414414144
if (this.splitTestData === null || !$.isPlainObject(this.splitTestData)) {
1414514145
this.splitTestData = {};
1414614146

@@ -14819,6 +14819,7 @@ dependencyScope.jQuery = $;;
1481914819
},
1482014820

1482114821
storage: {
14822+
splitTestDataInstanceName: 'split-test-data',
1482214823
instance: null,
1482314824

1482414825
init: function (entries, callback) {
@@ -15798,7 +15799,7 @@ dependencyScope.jQuery = $;;
1579815799
* Store the updated information and set it, it can only be modified here -
1579915800
* must be initialized we called `getSplitTestData` previously.
1580015801
*/
15801-
Breinify.UTL.storage.update('splitTestData', 30 * 24 * 60, splitTestData);
15802+
Breinify.UTL.storage.update(BreinifyUtil.storage.splitTestDataInstanceName, 30 * 24 * 60, splitTestData);
1580215803
Breinify.UTL.user.splitTestData = splitTestData;
1580315804
},
1580415805

dist/breinify-api.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Breinify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
* Store the updated information and set it, it can only be modified here -
166166
* must be initialized we called `getSplitTestData` previously.
167167
*/
168-
Breinify.UTL.storage.update('splitTestData', 30 * 24 * 60, splitTestData);
168+
Breinify.UTL.storage.update(BreinifyUtil.storage.splitTestDataInstanceName, 30 * 24 * 60, splitTestData);
169169
Breinify.UTL.user.splitTestData = splitTestData;
170170
},
171171

src/BreinifyUtil.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@
773773
BreinifyUtil.storage.init({});
774774

775775
// get the information from it
776-
this.splitTestData = BreinifyUtil.storage.get('split-test-data');
776+
this.splitTestData = BreinifyUtil.storage.get(BreinifyUtil.storage.splitTestDataInstanceName);
777777
if (this.splitTestData === null || !$.isPlainObject(this.splitTestData)) {
778778
this.splitTestData = {};
779779

@@ -1452,6 +1452,7 @@
14521452
},
14531453

14541454
storage: {
1455+
splitTestDataInstanceName: 'split-test-data',
14551456
instance: null,
14561457

14571458
init: function (entries, callback) {

0 commit comments

Comments
 (0)