fossasia/loklak_webclient

View on GitHub
iframely/plugins/custom/noindex/noindex-header.js

Summary

Maintainability
A
0 mins
Test Coverage
var pluginUtils = require('./utils');

module.exports = {

    getData: function(htmlparser, cb) {
        var headers = htmlparser.request.response.headers;
        if (pluginUtils.checkRobots(headers['x-robots-tag'], cb)) {
            return;
        } else {
            cb();
        }
    }
};