Skip to content

Commit 12e19af

Browse files
committed
fixed bug with OAuth.create and fetchDescription
1 parent d85ecdc commit 12e19af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coffee/lib/oauth.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ module.exports = (window, document, jQuery, navigator) ->
6666

6767
# create popup
6868
delayedFunctions = ($) ->
69-
oauthio.request = require("./oauthio_requests")($, config, client_states, cache)
69+
oauthio.request = require("./oauthio_requests")($, config, client_states, cache, providers_api)
7070
providers_api.fetchDescription = (provider) ->
7171
return if providers_desc[provider]
7272
providers_desc[provider] = true
7373
$.ajax(
74-
url: config.oauthd_base + config.oauthd_api + "/providers/" + provider
74+
url: config.oauthd_api + "/providers/" + provider
7575
data:
7676
extend: true
7777

@@ -331,7 +331,7 @@ module.exports = (window, document, jQuery, navigator) ->
331331
providers_api.fetchDescription.apply providers_api, arguments
332332
return
333333
)
334-
oauthio.request = require("./oauthio_requests")(window.jQuery, config, client_states, cache)
334+
oauthio.request = require("./oauthio_requests")(window.jQuery, config, client_states, cache, providers_api)
335335
else
336336
delayedFunctions window.jQuery
337337
return

0 commit comments

Comments
 (0)