@alipay/ams-checkout 0.0.1726713131-dev.2 → 0.0.1726713131-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -320,7 +320,7 @@ var AMSSDK = /*#__PURE__*/function () {
|
|
320
320
|
this._overrideSubscription(EVENT.close.name, options.onClose, EVENT.close.uniqueKey);
|
321
321
|
}
|
322
322
|
if (options !== null && options !== void 0 && options.onBeforeSubmit) {
|
323
|
-
if (
|
323
|
+
if (typeof (options === null || options === void 0 ? void 0 : options.onBeforeSubmit) !== 'function') throw new Error(ERRORMESSAGE.INIT_PARAMETER_ERROR.EVENT_ERROR.message);
|
324
324
|
this._overrideSubscription(EVENT.beforeSubmit.name, /*#__PURE__*/function () {
|
325
325
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(payload) {
|
326
326
|
var eventCallbackId, res;
|