Skip to content

Version 0.2.2

Compare
Choose a tag to compare
@william26 william26 released this 04 Aug 08:41
· 79 commits to master since this release
  • Adds the possibility to set your own window settings for the popup :
OAuth.initialize('your_key');
OAuth.popup('provider', {
        wnd_settings:  {
             width: 500,
             height: 500,
             left: 200,
             top: 200
        }
    })
    .done(function (response) {
         //...
    })
    .fail(function (error) {
        //...
    });

This is especially useful for Chrome extensions, in which the popup has to be launched from the background page, which doesn't have geometry properties set.