prx_auth-rails 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a692b8cc459acfdf888599245ff2db7d7ed92a3c967fbccacdd871aa4e78cd7
|
4
|
+
data.tar.gz: 17439da5ec7e7cc7f85d00083a47aaebb6d6bd495db25fa75581bf0758726d6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a185d858e8a50a33e1f18c85e7dabf5f01a46fbc068dd74d222bb48ab03732ced79c60affd45f7e70efd628cfaaf259e9d4781c390470de86a06dd46158bf0c
|
7
|
+
data.tar.gz: d8f2b9c1c1367c2954575950f1ddc731f329f59d111efcb11282d78651a06cf22c74557f834d51ff6fa3ca7360d1cb06ad4736cd2a41d0ff28c5554913fcc193
|
@@ -12,15 +12,17 @@ function prxInjectScript(src, callback) {
|
|
12
12
|
}
|
13
13
|
|
14
14
|
document.addEventListener('DOMContentLoaded', function () {
|
15
|
-
|
15
|
+
|
16
|
+
const widget = document.getElementById('prx-user-widget');
|
17
|
+
const account = document.getElementById('prx-user-widget-menu-account');
|
18
|
+
|
19
|
+
const idHost = 'https://' + widget.getAttribute('data-id-host');;
|
16
20
|
const scriptUrl = idHost + '/widget.js';
|
17
21
|
|
18
22
|
prxInjectScript(scriptUrl, function () {
|
19
23
|
const signIn = new PRXSignIn(idHost);
|
20
24
|
|
21
25
|
signIn.signedIn(function (prx) {
|
22
|
-
const widget = document.getElementById('prx-user-widget');
|
23
|
-
const account = document.getElementById('prx-user-widget-menu-account');
|
24
26
|
|
25
27
|
if (!prx.userinfo) {
|
26
28
|
// Not logged in
|