cookie-consent-js
Advanced tools
Comparing version 2.1.6 to 2.1.8
{ | ||
"name": "cookie-consent-js", | ||
"version": "2.1.6", | ||
"version": "2.1.8", | ||
"description": "A simple dialog and framework to handle the EU law (as written by EuGH, 1.10.2019 – C-673/17) about cookies in a website.", | ||
@@ -30,4 +30,4 @@ "main": "src/cookie-consent.js", | ||
"devDependencies": { | ||
"teevi": "^2.1.9" | ||
"teevi": "^2.2.4" | ||
} | ||
} |
@@ -8,3 +8,4 @@ # cookie-consent-js | ||
- **Internationalizable** with [language files](https://github.com/shaack/cookie-consent-js/tree/master/cookie-consent-content) | ||
- **Internationalizable** | ||
with [language files](https://github.com/shaack/cookie-consent-js/tree/master/cookie-consent-content) | ||
- **No external dependencies** (and it works also with Bootstrap) | ||
@@ -17,3 +18,5 @@ - **Responsive**, it works on mobile and desktop devices | ||
There are already language files for [cz, de, en, es, fr, gr, it, oc and tr](https://github.com/shaack/cookie-consent-js/tree/master/cookie-consent-content). If you add one, please make a pull request to have it added here as well, thanks. | ||
There are already language files | ||
for [cz, de, en, es, fr, gr, it, oc and tr](https://github.com/shaack/cookie-consent-js/tree/master/cookie-consent-content). | ||
If you add one, please make a pull request to have it added here as well, thanks. | ||
@@ -44,3 +47,2 @@ ## See it in action | ||
```html | ||
<script src="/node_modules/cookie-consent-js/src/cookie-consent.js"></script> | ||
@@ -47,0 +49,0 @@ ``` |
@@ -29,3 +29,2 @@ /** | ||
if (property !== "content") { | ||
// noinspection JSUnfilteredForInLoop | ||
self.props[property] = props[property] | ||
@@ -97,3 +96,3 @@ } | ||
} | ||
request.onloadend = function() { | ||
request.onloadend = function () { | ||
if (request.status === 404 && lang !== self.props.defaultLang) { | ||
@@ -100,0 +99,0 @@ console.warn("language " + lang + " not found trying defaultLang " + self.props.defaultLang) |
180
60941
445