Skip to content

Commit

Permalink
Merge pull request #30071 from owncloud/stable10-gdrive-js-properly-skip
Browse files Browse the repository at this point in the history
[stable10] Don't break event chain in GDrive storage oauth2 handler
  • Loading branch information
Vincent Petry authored Jan 9, 2018
2 parents d605d05 + 5f7294e commit da396ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_external/js/gdrive.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $(document).ready(function() {
*/
$('.configuration').on('oauth_step1', function (event, data) {
if (data['backend_id'] !== backendId) {
return false; // means the trigger is not for this storage adapter
return; // means the trigger is not for this storage adapter
}

// Redirects the User on success else displays an alert (with error message sent by backend)
Expand All @@ -45,7 +45,7 @@ $(document).ready(function() {

$('.configuration').on('oauth_step2', function (event, data) {
if (data['backend_id'] !== backendId || data['code'] === undefined) {
return false; // means the trigger is not for this OAuth2 grant
return; // means the trigger is not for this OAuth2 grant
}

OCA.External.Settings.OAuth2.verifyCode(backendUrl, data)
Expand Down

0 comments on commit da396ef

Please sign in to comment.