react-tencent-captcha
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,2 +0,2 @@ | ||
import e from"react";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var i,c="react-tencent-captcha",l=(i="Function",function(e){return Object.prototype.toString.call(e)==="[object ".concat(i,"]")}),u=function(i){function u(){var t,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o=this,i=r(u).apply(this,arguments),t=!i||"object"!=typeof i&&"function"!=typeof i?a(o):i,n(a(t),"init",function(){var e=a(t);if(window.TencentCaptcha)e.ready();else{var n=document.getElementById(c);if(n){if(e.element)return;return n.addEventListener("Im-ready",e.ready.bind(e),!1),void(e.element=n)}var r=document.createElement("script");r.id=c,r.type="text/javascript",r.async=!0,r.charset="utf-8",r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,e.ready(),e.triggerEvent("Im-ready"))}:r.onload=function(){r.onload=null,e.ready(),e.triggerEvent("Im-ready")};var o="http:"===window.location.protocol?"http:":"https:";r.src="".concat(o,"//ssl.captcha.qq.com/TCaptcha.js?_t=").concat((new Date).getTime());var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i),e.script=r}}),n(a(t),"ready",function(e){var n=a(t),r=n.props,o=r.appId,i=r.options,c=r.onCallBack,u=r.onReady;if(window.TencentCaptcha&&!n.instance){var p=new window.TencentCaptcha(n.dom,o,c,i);n.instance=p,n.element&&n.element.removeEventListener("Im-ready",n.ready.bind(n),!1),l(u)&&u(p)}}),n(a(t),"destroy",function(){var e=a(t);e.element&&e.element.removeEventListener("Im-ready",e.ready.bind(e),!1),e.instance=null,e.script=null,e.element=null}),n(a(t),"triggerEvent",function(e){var n=a(t);if(n.element){var r=document.createEvent("Event");r.initEvent(e,!0,!0),n.element.dispatchEvent(r)}});var p=a(t);return p.dom=e.createRef(),p.instance=null,p.script=null,p.element=null,t}var p,s,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(u,e.PureComponent),p=u,(s=[{key:"componentDidMount",value:function(){this.init()}},{key:"componentDidUpdate",value:function(e,t){this.init()}},{key:"componentWillUnmount",value:function(){this.destroy()}},{key:"render",value:function(){var t=this.props.className;return e.createElement("div",{ref:this.dom,className:t})}}])&&t(p.prototype,s),d&&t(p,d),u}();n(u,"defaultProps",{className:"i-tcaptcha",options:{},onCallBack:function(){},onReady:function(){}});export default u; | ||
import e from"react";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var i,c="react-tencent-captcha",u=(i="Function",function(e){return Object.prototype.toString.call(e)==="[object ".concat(i,"]")}),l=function(i){function l(){var t,a,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a=this,i=r(l).apply(this,arguments),t=!i||"object"!=typeof i&&"function"!=typeof i?o(a):i,n(o(t),"init",function(){var e=o(t);if(window.TencentCaptcha)e.ready();else{var n=document.getElementById(c);if(n){if(e.element)return;return n.addEventListener("Im-ready",e.ready.bind(e),!1),void(e.element=n)}var r=document.createElement("script");r.id=c,r.type="text/javascript",r.async=!0,r.charset="utf-8",r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,e.ready(),e.triggerEvent("Im-ready"))}:r.onload=function(){r.onload=null,e.ready(),e.triggerEvent("Im-ready")},r.src="https://ssl.captcha.qq.com/TCaptcha.js?_t=".concat((new Date).getTime());var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a),e.script=r}}),n(o(t),"ready",function(e){var n=o(t),r=n.props,a=r.appId,i=r.options,c=r.onCallBack,l=r.onReady;if(window.TencentCaptcha&&!n.instance){var s=new window.TencentCaptcha(n.dom,a,c,i);n.instance=s,n.element&&n.element.removeEventListener("Im-ready",n.ready.bind(n),!1),u(l)&&l(s)}}),n(o(t),"destroy",function(){var e=o(t);e.element&&e.element.removeEventListener("Im-ready",e.ready.bind(e),!1),e.instance=null,e.script=null,e.element=null}),n(o(t),"triggerEvent",function(e){var n=o(t);if(n.element){var r=document.createEvent("Event");r.initEvent(e,!0,!0),n.element.dispatchEvent(r)}});var s=o(t);return s.dom=e.createRef(),s.instance=null,s.script=null,s.element=null,t}var s,p,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(l,e.PureComponent),s=l,(p=[{key:"componentDidMount",value:function(){this.init()}},{key:"componentDidUpdate",value:function(e,t){this.init()}},{key:"componentWillUnmount",value:function(){this.destroy()}},{key:"render",value:function(){var t=this.props.className;return e.createElement("div",{ref:this.dom,className:t})}}])&&t(s.prototype,p),d&&t(s,d),l}();n(l,"defaultProps",{className:"i-tcaptcha",options:{},onCallBack:function(){},onReady:function(){}});export default l; | ||
//# sourceMappingURL=tcaptcha.esm.min.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var React=_interopDefault(require("react"));function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}var SCRIPT_ID="react-tencent-captcha",typeOf=function(e){return function(t){return Object.prototype.toString.call(t)==="[object ".concat(e,"]")}},isFunction=typeOf("Function"),TCaptcha=function(e){function t(){var e;_classCallCheck(this,t),_defineProperty(_assertThisInitialized(e=_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))),"init",function(){var t=_assertThisInitialized(e);if(window.TencentCaptcha)t.ready();else{var n=document.getElementById(SCRIPT_ID);if(n){if(t.element)return;return n.addEventListener("Im-ready",t.ready.bind(t),!1),void(t.element=n)}var r=document.createElement("script");r.id=SCRIPT_ID,r.type="text/javascript",r.async=!0,r.charset="utf-8",r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,t.ready(),t.triggerEvent("Im-ready"))}:r.onload=function(){r.onload=null,t.ready(),t.triggerEvent("Im-ready")};var i="http:"===window.location.protocol?"http:":"https:";r.src="".concat(i,"//ssl.captcha.qq.com/TCaptcha.js?_t=").concat((new Date).getTime());var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a),t.script=r}}),_defineProperty(_assertThisInitialized(e),"ready",function(t){var n=_assertThisInitialized(e),r=n.props,i=r.appId,a=r.options,o=r.onCallBack,c=r.onReady;if(window.TencentCaptcha&&!n.instance){var s=new window.TencentCaptcha(n.dom,i,o,a);n.instance=s,n.element&&n.element.removeEventListener("Im-ready",n.ready.bind(n),!1),isFunction(c)&&c(s)}}),_defineProperty(_assertThisInitialized(e),"destroy",function(){var t=_assertThisInitialized(e);t.element&&t.element.removeEventListener("Im-ready",t.ready.bind(t),!1),t.instance=null,t.script=null,t.element=null}),_defineProperty(_assertThisInitialized(e),"triggerEvent",function(t){var n=_assertThisInitialized(e);if(n.element){var r=document.createEvent("Event");r.initEvent(t,!0,!0),n.element.dispatchEvent(r)}});var n=_assertThisInitialized(e);return n.dom=React.createRef(),n.instance=null,n.script=null,n.element=null,e}return _inherits(t,React.PureComponent),_createClass(t,[{key:"componentDidMount",value:function(){this.init()}},{key:"componentDidUpdate",value:function(e,t){this.init()}},{key:"componentWillUnmount",value:function(){this.destroy()}},{key:"render",value:function(){var e=this.props.className;return React.createElement("div",{ref:this.dom,className:e})}}]),t}();_defineProperty(TCaptcha,"defaultProps",{className:"i-tcaptcha",options:{},onCallBack:function(){},onReady:function(){}}),module.exports=TCaptcha; | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var React=_interopDefault(require("react"));function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}var SCRIPT_ID="react-tencent-captcha",typeOf=function(e){return function(t){return Object.prototype.toString.call(t)==="[object ".concat(e,"]")}},isFunction=typeOf("Function"),TCaptcha=function(e){function t(){var e;_classCallCheck(this,t),_defineProperty(_assertThisInitialized(e=_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))),"init",function(){var t=_assertThisInitialized(e);if(window.TencentCaptcha)t.ready();else{var n=document.getElementById(SCRIPT_ID);if(n){if(t.element)return;return n.addEventListener("Im-ready",t.ready.bind(t),!1),void(t.element=n)}var r=document.createElement("script");r.id=SCRIPT_ID,r.type="text/javascript",r.async=!0,r.charset="utf-8",r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,t.ready(),t.triggerEvent("Im-ready"))}:r.onload=function(){r.onload=null,t.ready(),t.triggerEvent("Im-ready")},r.src="https://ssl.captcha.qq.com/TCaptcha.js?_t=".concat((new Date).getTime());var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i),t.script=r}}),_defineProperty(_assertThisInitialized(e),"ready",function(t){var n=_assertThisInitialized(e),r=n.props,i=r.appId,a=r.options,o=r.onCallBack,c=r.onReady;if(window.TencentCaptcha&&!n.instance){var s=new window.TencentCaptcha(n.dom,i,o,a);n.instance=s,n.element&&n.element.removeEventListener("Im-ready",n.ready.bind(n),!1),isFunction(c)&&c(s)}}),_defineProperty(_assertThisInitialized(e),"destroy",function(){var t=_assertThisInitialized(e);t.element&&t.element.removeEventListener("Im-ready",t.ready.bind(t),!1),t.instance=null,t.script=null,t.element=null}),_defineProperty(_assertThisInitialized(e),"triggerEvent",function(t){var n=_assertThisInitialized(e);if(n.element){var r=document.createEvent("Event");r.initEvent(t,!0,!0),n.element.dispatchEvent(r)}});var n=_assertThisInitialized(e);return n.dom=React.createRef(),n.instance=null,n.script=null,n.element=null,e}return _inherits(t,React.PureComponent),_createClass(t,[{key:"componentDidMount",value:function(){this.init()}},{key:"componentDidUpdate",value:function(e,t){this.init()}},{key:"componentWillUnmount",value:function(){this.destroy()}},{key:"render",value:function(){var e=this.props.className;return React.createElement("div",{ref:this.dom,className:e})}}]),t}();_defineProperty(TCaptcha,"defaultProps",{className:"i-tcaptcha",options:{},onCallBack:function(){},onReady:function(){}}),module.exports=TCaptcha; | ||
//# sourceMappingURL=tcaptcha.min.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).TCaptcha=t(e.React)}(this,function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e=e&&e.hasOwnProperty("default")?e.default:e;var i,c="react-tencent-captcha",u=(i="Function",function(e){return Object.prototype.toString.call(e)==="[object ".concat(i,"]")}),l=function(i){function l(){var t,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=this,i=r(l).apply(this,arguments),t=!i||"object"!=typeof i&&"function"!=typeof i?a(o):i,n(a(t),"init",function(){var e=a(t);if(window.TencentCaptcha)e.ready();else{var n=document.getElementById(c);if(n){if(e.element)return;return n.addEventListener("Im-ready",e.ready.bind(e),!1),void(e.element=n)}var r=document.createElement("script");r.id=c,r.type="text/javascript",r.async=!0,r.charset="utf-8",r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,e.ready(),e.triggerEvent("Im-ready"))}:r.onload=function(){r.onload=null,e.ready(),e.triggerEvent("Im-ready")};var o="http:"===window.location.protocol?"http:":"https:";r.src="".concat(o,"//ssl.captcha.qq.com/TCaptcha.js?_t=").concat((new Date).getTime());var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i),e.script=r}}),n(a(t),"ready",function(e){var n=a(t),r=n.props,o=r.appId,i=r.options,c=r.onCallBack,l=r.onReady;if(window.TencentCaptcha&&!n.instance){var f=new window.TencentCaptcha(n.dom,o,c,i);n.instance=f,n.element&&n.element.removeEventListener("Im-ready",n.ready.bind(n),!1),u(l)&&l(f)}}),n(a(t),"destroy",function(){var e=a(t);e.element&&e.element.removeEventListener("Im-ready",e.ready.bind(e),!1),e.instance=null,e.script=null,e.element=null}),n(a(t),"triggerEvent",function(e){var n=a(t);if(n.element){var r=document.createEvent("Event");r.initEvent(e,!0,!0),n.element.dispatchEvent(r)}});var f=a(t);return f.dom=e.createRef(),f.instance=null,f.script=null,f.element=null,t}var f,s,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(l,e.PureComponent),f=l,(s=[{key:"componentDidMount",value:function(){this.init()}},{key:"componentDidUpdate",value:function(e,t){this.init()}},{key:"componentWillUnmount",value:function(){this.destroy()}},{key:"render",value:function(){var t=this.props.className;return e.createElement("div",{ref:this.dom,className:t})}}])&&t(f.prototype,s),d&&t(f,d),l}();return n(l,"defaultProps",{className:"i-tcaptcha",options:{},onCallBack:function(){},onReady:function(){}}),l}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).TCaptcha=t(e.React)}(this,function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e=e&&e.hasOwnProperty("default")?e.default:e;var i,c="react-tencent-captcha",u=(i="Function",function(e){return Object.prototype.toString.call(e)==="[object ".concat(i,"]")}),l=function(i){function l(){var t,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=this,i=r(l).apply(this,arguments),t=!i||"object"!=typeof i&&"function"!=typeof i?a(o):i,n(a(t),"init",function(){var e=a(t);if(window.TencentCaptcha)e.ready();else{var n=document.getElementById(c);if(n){if(e.element)return;return n.addEventListener("Im-ready",e.ready.bind(e),!1),void(e.element=n)}var r=document.createElement("script");r.id=c,r.type="text/javascript",r.async=!0,r.charset="utf-8",r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,e.ready(),e.triggerEvent("Im-ready"))}:r.onload=function(){r.onload=null,e.ready(),e.triggerEvent("Im-ready")},r.src="https://ssl.captcha.qq.com/TCaptcha.js?_t=".concat((new Date).getTime());var o=document.getElementsByTagName("script")[0];o.parentNode.insertBefore(r,o),e.script=r}}),n(a(t),"ready",function(e){var n=a(t),r=n.props,o=r.appId,i=r.options,c=r.onCallBack,l=r.onReady;if(window.TencentCaptcha&&!n.instance){var f=new window.TencentCaptcha(n.dom,o,c,i);n.instance=f,n.element&&n.element.removeEventListener("Im-ready",n.ready.bind(n),!1),u(l)&&l(f)}}),n(a(t),"destroy",function(){var e=a(t);e.element&&e.element.removeEventListener("Im-ready",e.ready.bind(e),!1),e.instance=null,e.script=null,e.element=null}),n(a(t),"triggerEvent",function(e){var n=a(t);if(n.element){var r=document.createEvent("Event");r.initEvent(e,!0,!0),n.element.dispatchEvent(r)}});var f=a(t);return f.dom=e.createRef(),f.instance=null,f.script=null,f.element=null,t}var f,s,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(l,e.PureComponent),f=l,(s=[{key:"componentDidMount",value:function(){this.init()}},{key:"componentDidUpdate",value:function(e,t){this.init()}},{key:"componentWillUnmount",value:function(){this.destroy()}},{key:"render",value:function(){var t=this.props.className;return e.createElement("div",{ref:this.dom,className:t})}}])&&t(f.prototype,s),d&&t(f,d),l}();return n(l,"defaultProps",{className:"i-tcaptcha",options:{},onCallBack:function(){},onReady:function(){}}),l}); | ||
//# sourceMappingURL=tcaptcha.umd.min.js.map |
@@ -59,3 +59,3 @@ { | ||
"unpkg": "dist/tcaptcha.min.js", | ||
"version": "1.0.1" | ||
"version": "1.0.2" | ||
} |
@@ -126,4 +126,5 @@ import React from 'react'; | ||
const protocol = window.location.protocol === 'http:' ? 'http:' : 'https:'; | ||
ds.src = `${protocol}//ssl.captcha.qq.com/TCaptcha.js?_t=${new Date().getTime()}`; | ||
// const protocol = window.location.protocol === 'http:' ? 'http:' : 'https:'; | ||
// ds.src = `${protocol}//ssl.captcha.qq.com/TCaptcha.js?_t=${new Date().getTime()}`; | ||
ds.src = `https://ssl.captcha.qq.com/TCaptcha.js?_t=${new Date().getTime()}`; | ||
const s = document.getElementsByTagName('script')[0]; | ||
@@ -130,0 +131,0 @@ s.parentNode.insertBefore(ds, s); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25640
203