cb option for auth change event

This commit is contained in:
Max Eddy
2017-06-06 15:54:28 -04:00
parent 6139828844
commit fd9b14a560
+3 -1
View File
@@ -55,7 +55,9 @@ function configurePymParent(pymParent, opts) {
}
pymParent.onMessage('checkLogin', function(result) {
console.log(JSON.parse(result));
if (opts.onAuthChange) {
opts.onAuthChange(JSON.parse(result));
}
});
// Sends config to the child