Created
February 23, 2015 12:58
-
-
Save nutti/3439c17a1744cc93cc51 to your computer and use it in GitHub Desktop.
InAppBrowser Event Listener
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
self.cb = window.open(url, '_blank', 'location=no,toolbar=no,clearsessioncache=yes'); | |
self.cb.addEventListener('loadstart', function(e) { | |
var loc = e.url; | |
if (loc.indexOf(REDIRECT_URL) != -1) { | |
// 認可完了後の処理 | |
return; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment