diff --git a/disqus.js b/disqus.js index bbc4075..25dbaf7 100644 --- a/disqus.js +++ b/disqus.js @@ -23,7 +23,7 @@ var disqus_config; Drupal.disqus = { loadCommentScript: function (shortname) { // Make the AJAX call to get the Disqus comments. - this.loadScript(shortname, 'embed.js') + this.loadScript(shortname, 'embed.js'); }, loadCountScript: function (shortname) { // Make the AJAX call to get the number of comments. diff --git a/src/DisqusCommentManager.php b/src/DisqusCommentManager.php index d5a0701..88abf55 100644 --- a/src/DisqusCommentManager.php +++ b/src/DisqusCommentManager.php @@ -187,7 +187,7 @@ class DisqusCommentManager implements DisqusCommentManagerInterface { switch (\Drupal::config('disqus.settings')->get('advanced.lazy_loading.method')) { case DisqusCommentManager::DISQUS_LAZY_LOAD_ON_SCROLL: - $data['lazyLoadMethod'] = 'scroll'; + $data['lazyLoadMethod'] = 'scroll'; break; case DisqusCommentManager::DISQUS_LAZY_LOAD_ON_CLICK: $data['lazyLoadClass'] = String::checkPlain(\Drupal::config('disqus.settings')->get('advanced.lazy_loading.class'));