react-grecaptcha-v3
Version:
Google Recaptcha V3 for React.js based application. Keep website performance high while prioritizing security.
14 lines • 555 B
JavaScript
import { queueKey } from "./global/globals";
var notExistsIndex = -1;
var countToDelete = 1;
var unsubscribeEvent = function(item) {
var _window_queueKey;
var callbacks = (_window_queueKey = window[queueKey]) !== null && _window_queueKey !== void 0 ? _window_queueKey : [];
var index = callbacks.indexOf(item);
if (index > notExistsIndex) {
callbacks.splice(index, countToDelete);
}
};
var unsubscribeEvent_default = unsubscribeEvent;
export { unsubscribeEvent_default as default };
//# sourceMappingURL=unsubscribeEvent.js.map