You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/constructorio.js
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ class ConstructorIO {
57
57
* @param {boolean} [parameters.eventDispatcher.waitForBeacon=true] - Wait for beacon before dispatching events
58
58
* @param {object} [parameters.networkParameters] - Parameters relevant to network requests
59
59
* @param {number} [parameters.networkParameters.timeout] - Request timeout (in milliseconds) - may be overridden within individual method calls
60
+
* @param {string} [parameters.humanityCheckLocation='session'] - Storage location for the humanity check flag ('session' for sessionStorage, 'local' for localStorage)
60
61
* @property {object} search - Interface to {@link module:search}
61
62
* @property {object} browse - Interface to {@link module:browse}
62
63
* @property {object} autocomplete - Interface to {@link module:autocomplete}
@@ -89,6 +90,7 @@ class ConstructorIO {
89
90
idOptions,
90
91
beaconMode,
91
92
networkParameters,
93
+
humanityCheckLocation,
92
94
}=options;
93
95
94
96
if(!apiKey||typeofapiKey!=='string'){
@@ -136,6 +138,7 @@ class ConstructorIO {
136
138
eventDispatcher,
137
139
beaconMode: (beaconMode===false) ? false : true,// Defaults to 'true',
0 commit comments