Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-fbcomments

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-fbcomments - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

35

index.js

@@ -18,2 +18,3 @@ (function(_helper) {

_config.colorscheme = _config.colorscheme || 'dark';
_config.width = _config.width || '550px';
return(true);

@@ -25,19 +26,17 @@ }

if (!initConfig()) return("");
let html = '<div id="fb-root"></div>';
html += '<script>(function(d, s, id) {';
html += 'var js, fjs = d.getElementsByTagName(s)[0];';
html += 'if (d.getElementById(id)) return;';
html += 'js = d.createElement(s); js.id = id;';
let html = '<div id="fb-root"></div>' + '\n';
html += '<script>(function(d, s, id) {' + '\n';
html += 'var js, fjs = d.getElementsByTagName(s)[0];' + '\n';
html += 'if (d.getElementById(id)) return;' + '\n';
html += 'js = d.createElement(s); js.id = id;' + '\n';
html += 'js.src = "//connect.facebook.net/';
html += _config.lang; // language
html += '/sdk.js#xfbml=1&version=v3.1&appId=';
html += '_config.appId'; // appid
html += _config.appId; // appid
html += '&autoLogAppEvents=1';
html += '&colorscheme=';
html += '_config.colorscheme'; // colorscheme
html += '&order_by=';
html += '_config.order_by'; // order by
html += ';';
html += 'fjs.parentNode.insertBefore(js, fjs);';
html += "}(document, 'script', 'facebook-jssdk'));</script>";
html += '&colorscheme=' + _config.colorscheme; // colorscheme
html += '&width=' + _config.width; // width
html += '&order_by=' + _config.order_by + '";\n'; // order by
html += 'fjs.parentNode.insertBefore(js, fjs);' + '\n';
html += "}(document, 'script', 'facebook-jssdk'));</script>" + '\n';
return html;

@@ -50,10 +49,10 @@ }

permaLink = permaLink || "err";
let html = '<section id="comments">';
html += '<div class="fb-comments" data-href="';
let html = '<section id="comments">' + '\n';
html += '<div class="fb-comments" data-href="' + '\n';
html += permaLink;
html += '" data-numposts="';
html += _config.numPosts;
html += '"></div>';
html += '</section>';
return(ret);
html += '"></div>' + '\n';
html += '</section>' + '\n';
return(html);
}

@@ -60,0 +59,0 @@

@@ -8,4 +8,4 @@ {

"name": "hexo-fbcomments",
"version": "1.0.1",
"version": "1.0.2",
"main": "index"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc