Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

Commit

Permalink
Merge fa37ee2 into 18f7372
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Oct 11, 2017
2 parents 18f7372 + fa37ee2 commit e1a9c9e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions release/angular-recaptcha.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license angular-recaptcha build:2017-04-24
* @license angular-recaptcha build:2017-10-10
* https://github.com/vividcortex/angular-recaptcha
* Copyright (c) 2017 VividCortex
**/
Expand Down Expand Up @@ -162,7 +162,7 @@
script.async = true;
script.defer = true;
script.src = 'https://www.google.com/recaptcha/api.js?onload='+provider.onLoadFunctionName+'&render=explicit';
$document.find('body').append(script);
$document.find('body')[0].appendChild(script);
}

return {
Expand Down
4 changes: 2 additions & 2 deletions release/angular-recaptcha.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
script.async = true;
script.defer = true;
script.src = 'https://www.google.com/recaptcha/api.js?onload='+provider.onLoadFunctionName+'&render=explicit';
$document.find('body').append(script);
$document.find('body')[0].appendChild(script);
}

return {
Expand Down
6 changes: 3 additions & 3 deletions tests/service_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ describe('service', function () {
.given.onLoadFunctionName(funcName = 'my-func')
.given.mockDocument({
find: function () {
return {
append: appendSpy
};
return [{
appendChild: appendSpy
}];
}
})
.given.mockWindow({
Expand Down

0 comments on commit e1a9c9e

Please sign in to comment.