@suprsend/web-sdk 1.2.5 → 1.2.6
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/dist/cdn_bundle.js +1 -1
- package/dist/cjs_bundle.js +1 -1
- package/package.json +1 -1
- package/src/preferences.js +2 -1
package/package.json
CHANGED
package/src/preferences.js
CHANGED
|
@@ -12,7 +12,7 @@ class Preferences {
|
|
|
12
12
|
constructor(instance, emitter) {
|
|
13
13
|
this.ss_instance = instance;
|
|
14
14
|
this._preference_data;
|
|
15
|
-
this._preference_args;
|
|
15
|
+
this._preference_args; // used internally after over_all_channel_preferences update
|
|
16
16
|
this._emitter = emitter;
|
|
17
17
|
|
|
18
18
|
this._debounced_update_category_preferences = utils.debounce_by_type(
|
|
@@ -181,6 +181,7 @@ class Preferences {
|
|
|
181
181
|
|
|
182
182
|
async get_preferences(args = {}) {
|
|
183
183
|
let url_path = "full_preference";
|
|
184
|
+
this._preference_args = args;
|
|
184
185
|
let query_params = { tenant_id: args?.tenant_id };
|
|
185
186
|
|
|
186
187
|
const response = await this._get_request(url_path, query_params);
|