@a11ywatch/core
Version:
a11ywatch central API
18 lines • 528 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.blockWebsiteAdd = void 0;
const config_1 = require("../../../config/config");
const blockWebsiteAdd = ({ audience, collectionCount, }) => {
if (config_1.SUPER_MODE) {
return false;
}
if (!audience && collectionCount >= 1) {
return true;
}
if (audience && collectionCount >= 50) {
return true;
}
return false;
};
exports.blockWebsiteAdd = blockWebsiteAdd;
//# sourceMappingURL=websites.js.map
;