Commit cd8eaa73 authored by Anoop Singh's avatar Anoop Singh Committed by Sven Berg Ryen
Browse files

Issue #3302546 by anoopsingh92, svenryen: Typo and grammatical errors in README.md

parent cfc3ddec
Loading
Loading
Loading
Loading
+6 −6
Changes for README.md: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ given his consent:

Drupal.eu_cookie_compliance.hasAgreed()

Prevent "Consent by clicking" for some links
Prevent "Consent by clicking" on some links
--------------------------------------------

The module offers a feature to accept consent by clicking. It may be
@@ -50,10 +50,10 @@ INSTALLATION
   the module.

2. If desired, give the 'administer EU Cookie Compliance banner' permissions that
   allow users of certain roles access the administration page. You can do so on
   the admin/people/permissions page.
   allow users of certain roles to access the administration page. You can do so
   on the admin/people/permissions page.

  - there is also a 'display eu cookie compliance banner' permission that helps
  - there is also a 'display EU cookie compliance banner' permission that helps
    you show the banner to the roles you desire.

3. You may want to create a page that would explain how your site uses cookies.
@@ -99,7 +99,7 @@ Configurable Information
WORKING WITH THE EVENTS
-----------------------

This module now exposes a JS API which other modules can use to hook into the events fired by this module. Eg. read the cookie preferences when they are saved or do something based on the user's response. For example the JS in the [EU Cookie Compliance GTM module](https://www.drupal.org/project/eu_cookie_compliance_gtm) uses the Events to do things with GTM.
This module now exposes a JS API which other modules can use to hook into the events fired by this module. Eg. read the cookie preferences when they are saved or do something based on the user's response. For example, the JS in the [EU Cookie Compliance GTM module](https://www.drupal.org/project/eu_cookie_compliance_gtm) uses the Events to do things with GTM.

### Inside the scripts
#### Main file
@@ -146,7 +146,7 @@ The `response` variable is an object with the following structure:
```
{
   currentStatus: null (not yet agreed/withdrawn), 0 (declined), 1 (accepted, show thank you banner) or 2 (accepted),
   currentCategories: array of accepted categories (will be empty when not using category based compliance)
   currentCategories: array of accepted categories (will be empty when not using category-based compliance)
}
```