Skip to content

Commit

Permalink
Merge pull request #1 from panda2134/master
Browse files Browse the repository at this point in the history
Updated to use the latest v3 api
  • Loading branch information
MaZhaolin authored Apr 21, 2020
2 parents 84d9a94 + f52ce15 commit 5302cab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/vue-vaptcha.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var loadV2Script = function loadV2Script() {
} else {
return new Promise(function (resolve) {
var script = document.createElement('script');
script.src = 'https://cdn.vaptcha.com/v2.js';
script.src = 'https://v.vaptcha.com/v3.js';
script.async = true;

script.onload = script.onreadystatechange = function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-vaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
} else {
return new Promise(function (resolve) {
var script = document.createElement('script');
script.src = 'https://cdn.vaptcha.com/v2.js';
script.src = 'https://v.vaptcha.com/v3.js';
script.async = true;

script.onload = script.onreadystatechange = function () {
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-vaptcha.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/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const loadV2Script = () => {
} else {
return new Promise(resolve => {
var script = document.createElement('script')
script.src = 'https://cdn.vaptcha.com/v2.js'
script.src = 'https://v.vaptcha.com/v3.js'
script.async = true
script.onload = script.onreadystatechange = function() {
if (
Expand Down

0 comments on commit 5302cab

Please sign in to comment.