Skip to content

Commit 6ce002d

Browse files
committed
changed print detection
1 parent 5a7525c commit 6ce002d

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

dist/breinify-ui-recommendations.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
const results = await Promise.all(
1818
recommendations.map(recommendation =>
1919
Promise.resolve()
20-
.then(() => _private._handle(webExVersionId, recommendation))
20+
.then(() => _private._handle(webExId, webExVersionId, recommendation))
2121
.catch(err => {
2222
// handle/log error, and decide what to return
2323
console.error(err);
@@ -29,7 +29,7 @@
2929
Breinify.plugins.recommendations.render(results);
3030
},
3131

32-
_handle: async function (webExVersionId, singleConfig) {
32+
_handle: async function (webExId, webExVersionId, singleConfig) {
3333
const config = {};
3434

3535
if (!$.isPlainObject(singleConfig)) {
@@ -42,7 +42,7 @@
4242
config.position = this._createPosition(singleConfig.position);
4343
config.placeholders = this._createPlaceholders(singleConfig.placeholders);
4444
config.templates = this._createTemplates(singleConfig.templates);
45-
config.process = this._createProcess(webExVersionId, singleConfig.process);
45+
config.process = this._createProcess(webExId, webExVersionId, singleConfig.process);
4646
this._applyStyle(singleConfig.style);
4747

4848
/*
@@ -80,7 +80,7 @@
8080
}
8181
},
8282

83-
_createProcess: function (webExVersionId, config) {
83+
_createProcess: function (webExId, webExVersionId, config) {
8484

8585
let resolvedProcesses;
8686
if ($.isPlainObject(config)) {

dist/breinify-ui-recommendations.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/plugins/UiRecommendations.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
const results = await Promise.all(
1818
recommendations.map(recommendation =>
1919
Promise.resolve()
20-
.then(() => _private._handle(webExVersionId, recommendation))
20+
.then(() => _private._handle(webExId, webExVersionId, recommendation))
2121
.catch(err => {
2222
// handle/log error, and decide what to return
2323
console.error(err);
@@ -29,7 +29,7 @@
2929
Breinify.plugins.recommendations.render(results);
3030
},
3131

32-
_handle: async function (webExVersionId, singleConfig) {
32+
_handle: async function (webExId, webExVersionId, singleConfig) {
3333
const config = {};
3434

3535
if (!$.isPlainObject(singleConfig)) {
@@ -42,7 +42,7 @@
4242
config.position = this._createPosition(singleConfig.position);
4343
config.placeholders = this._createPlaceholders(singleConfig.placeholders);
4444
config.templates = this._createTemplates(singleConfig.templates);
45-
config.process = this._createProcess(webExVersionId, singleConfig.process);
45+
config.process = this._createProcess(webExId, webExVersionId, singleConfig.process);
4646
this._applyStyle(singleConfig.style);
4747

4848
/*
@@ -80,7 +80,7 @@
8080
}
8181
},
8282

83-
_createProcess: function (webExVersionId, config) {
83+
_createProcess: function (webExId, webExVersionId, config) {
8484

8585
let resolvedProcesses;
8686
if ($.isPlainObject(config)) {

0 commit comments

Comments
 (0)