Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: listener for loadStop is not created but is trying removed #87

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions openfb.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ var openFB = (function () {
oauthCallback(url);
}
}
function loginWindow_loadStopHandler(event) {
var url = event.url;
console.log('loginWindow_loadStopHandler :: ' + url);
}


// Inappbrowser exit handler: Used when running in Cordova only
function loginWindow_exitHandler() {
Expand Down Expand Up @@ -162,6 +167,8 @@ var openFB = (function () {
if (runningInCordova) {
loginWindow.addEventListener('loadstart', loginWindow_loadStartHandler);
loginWindow.addEventListener('exit', loginWindow_exitHandler);

loginWindow.addEventListener('loadstop', loginWindow_loadStopHandler);
}
// Note: if the app is running in the browser the loginWindow dialog will call back by invoking the
// oauthCallback() function. See oauthcallback.html for details.
Expand Down