fossasia/loklak_webclient

View on GitHub
iframely/plugins/links/promo/brightcove-allow-in-page.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = {

    provides: '__allowBrightcoveInPage',

    getData: function(meta, whitelistRecord) {

        // Allow slow cheerio parser, if whitelisted,
        // But do not call, if there is twitter:player
        if (whitelistRecord.isAllowed('html-meta.brightcoveInPage')) {

            return {
                __allowBrightcoveInPage: true
            };
        }
    }

}