zuora_connect 2.0.57j → 2.0.57k
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/hallway_wrapper/after.js +17 -1
- data/lib/zuora_connect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e465e3eb7a8baeebe136ee95418b56acd7e4fe2952c82469f3a457f528fadb1
|
|
4
|
+
data.tar.gz: 7cc23037896d083ea8ea23a1d1e7fb81a04d21e19731171879f2db750cb1f399
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df9a0b5b8c2448fcdda8d13c67b0998c17f46ce84452494b3d1db543a04a517d9515b2c65c3d057344ed1c118544b53d472de1504f2f4d2f60e0114cdbfb8912
|
|
7
|
+
data.tar.gz: 0573374e27adb8d81fbd2786c707b784b93eac71f1a70668316ca83e5af14831dc76dc213ac8372bf4fecd57d9667ba5c8a38c30c81a1850f2c1729fc5e5474b
|
|
@@ -4,7 +4,12 @@ window.define = previousDefine;
|
|
|
4
4
|
if (isHallway()) {
|
|
5
5
|
$( document ).ajaxError(function( event, jqxhr, settings, thrownError ) {
|
|
6
6
|
if ( jqxhr.status === 401) {
|
|
7
|
-
window.location.
|
|
7
|
+
fetch("https://" + window.location.host + "/apps/v1/navigation").then(response => {
|
|
8
|
+
if (response.status === 401) {
|
|
9
|
+
deleteAllCookies();
|
|
10
|
+
window.location.href = '/apps/newlogin.do?retURL=' + window.location.pathname;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
8
13
|
}
|
|
9
14
|
});
|
|
10
15
|
}
|
|
@@ -12,4 +17,15 @@ if (isHallway()) {
|
|
|
12
17
|
function isHallway() {
|
|
13
18
|
var regex = new RegExp("^/services/");
|
|
14
19
|
return window.location.pathname.match(regex);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function deleteAllCookies() {
|
|
23
|
+
var cookies = document.cookie.split(";");
|
|
24
|
+
|
|
25
|
+
for (var i = 0; i < cookies.length; i++) {
|
|
26
|
+
var cookie = cookies[i];
|
|
27
|
+
var eqPos = cookie.indexOf("=");
|
|
28
|
+
var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
|
|
29
|
+
document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/";
|
|
30
|
+
}
|
|
15
31
|
}
|