kc-sdk 7.0.389-rc → 7.0.390-rc
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/package.json +1 -1
- package/src/assets/sdk/kc-sdk.js +3 -2
package/package.json
CHANGED
package/src/assets/sdk/kc-sdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var kcSdkVersion = '7.0.
|
|
3
|
+
var kcSdkVersion = '7.0.390';
|
|
4
4
|
|
|
5
5
|
var kcSdk = function kcSdk() {
|
|
6
6
|
// locals
|
|
@@ -136,6 +136,7 @@ var kcSdk = function kcSdk() {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
} else if (service.kcWindowIsListening) {
|
|
139
|
+
service.kcWindow.opened = true;
|
|
139
140
|
needsAuthentication = service.workflow.length === 0 || (service.workflow.length > 0 && service.workflow[0].name !== 'setAuthToken');
|
|
140
141
|
} else {
|
|
141
142
|
closeKcWindow();
|
|
@@ -231,6 +232,7 @@ var kcSdk = function kcSdk() {
|
|
|
231
232
|
function openKcSentinel(url) {
|
|
232
233
|
if (!service.kcWindow.reference || !windowExists(service.kcWindow) || !service.kcWindowIsListening) {
|
|
233
234
|
service.kcWindow.reference = window.open(url, kcSentinelWindowName, kcWindowParams);
|
|
235
|
+
service.kcWindow.name = kcSentinelWindowName;
|
|
234
236
|
service.kcWindow.opened = true;
|
|
235
237
|
service.kcWindow.reference.focus();
|
|
236
238
|
} else {
|
|
@@ -694,7 +696,6 @@ var kcSdk = function kcSdk() {
|
|
|
694
696
|
else if (windowToSend === service.kcWindow.kcSentinelName) {
|
|
695
697
|
windowToSend = service.kcWindow;
|
|
696
698
|
service.kcWindow.name = service.kcWindow.kcSentinelName;
|
|
697
|
-
|
|
698
699
|
}
|
|
699
700
|
else {
|
|
700
701
|
stopWorkflow();
|