Created
October 23, 2018 18:14
-
-
Save viniciusdacal/a45a82883d03aedadcb9d5272bd4861b to your computer and use it in GitHub Desktop.
windowopen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const credentials = { | |
}; | |
function setCredentials(user) { | |
credentials.user = user; | |
} | |
//to actually open the window.. | |
var win = window.open("window.html"); | |
win.onload = function() { win.callback = setCredentials; }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment