projects
/
lantea.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c7daa6a
)
remove debug statements as it works now
author
Robert Kaiser
<kairo@kairo.at>
Fri, 10 Nov 2017 20:29:05 +0000
(21:29 +0100)
committer
Robert Kaiser
<kairo@kairo.at>
Fri, 10 Nov 2017 20:29:05 +0000
(21:29 +0100)
js/loginwindow.js
patch
|
blob
|
blame
|
history
diff --git
a/js/loginwindow.js
b/js/loginwindow.js
index cd8d7653ebb51d72cd5ccbb7c3051b807e0388bb..94cd6c2ca63e44cd38eafe13329eb80b308ccb5c 100644
(file)
--- a/
js/loginwindow.js
+++ b/
js/loginwindow.js
@@
-1,19
+1,14
@@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
-console.log("JS-load");
window.onload = function() {
// Complete the login process by calling the main window.
window.onload = function() {
// Complete the login process by calling the main window.
- console.log("onload");
if (window.opener) {
if (window.opener) {
- console.log("opener");
window.opener.finishLogin(getParameterByName("code"), getParameterByName("state"));
window.opener.finishLogin(getParameterByName("code"), getParameterByName("state"));
- console.log("finished");
window.close();
}
else {
window.close();
}
else {
- console.log("no-opener");
document.getElementById("logininfo").textContent = "You have called this document outside of the login flow, which is not supported.";
}
}
document.getElementById("logininfo").textContent = "You have called this document outside of the login flow, which is not supported.";
}
}