Skip to content

Commit

Permalink
Fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
philippG777 committed Dec 30, 2019
1 parent de13dc6 commit 4f2db03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Easy to use GDPR-complient cookie-banner
## Usage

```js
import CookieYesNo from 'cookieyesno';

const cyn = new CookieYesNo({
text: 'This website uses cookies. You can select below which cookies will be stored on your device.',
cookiePolicy: '<LINK TO YOUR COOKIE POLICY>',
Expand Down
4 changes: 3 additions & 1 deletion src/cookieyesno.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
CookieYesNo | philippG777 | https://github.com/philippG777/cookieyesno | BSD 3-Clause License
*/

export default class CookieYesNo {
class CookieYesNo {
constructor(config) {
this.cookie = { // cookie handler
set: function(cname, data) {
Expand Down Expand Up @@ -228,3 +228,5 @@ export default class CookieYesNo {
show() { this.banner.style.display = 'block' }
hide() { this.banner.style.display = 'none' }
};

module.exports = CookieYesNo;

0 comments on commit 4f2db03

Please sign in to comment.