hexo-disqus-proxy
Advanced tools
Comparing version 1.3.5 to 1.3.6
module.exports = function (hexo) { | ||
return function (locals) { | ||
if (!locals.page || !locals.page.content) return locals | ||
if (!locals.page || locals.page.__index) return locals | ||
@@ -23,6 +23,8 @@ const config = hexo.config.disqus_proxy | ||
</script>` | ||
locals.page.content = locals.page.content + script | ||
// Avoid the value undefined being casted into the string "undefined" | ||
if (locals.page.content != null) locals.page.content = locals.page.content + script | ||
return locals | ||
} | ||
} | ||
} |
{ | ||
"name": "hexo-disqus-proxy", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"main": "index", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39236
66