Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / eu_cookie_compliance / src / Routing / CheckIfEuCountryJs.php
index 23868e265be0051d389011d7b90f301356648582..7ffafc111aa3ff539f1181a774856882c3f9dadf 100644 (file)
@@ -13,8 +13,8 @@ class CheckIfEuCountryJs {
    * {@inheritdoc}
    */
   public function routes() {
-    $routes = array();
-    if (\Drupal::moduleHandler()->moduleExists('smart_ip')) {
+    $routes = [];
+    if (\Drupal::config('eu_cookie_compliance.settings')->get('eu_only_js')) {
       $routes['eu_cookie_compliance.check_if_eu_country_js'] = new Route(
         '/eu-cookie-compliance-check',
         [