|
|
@ -62,6 +62,7 @@ |
|
|
|
<script> |
|
|
|
|
|
|
|
import Cookie from 'js-cookie'; |
|
|
|
import assign from 'assign-deep'; |
|
|
|
|
|
|
|
/** |
|
|
|
* tiny-consent.riot |
|
|
@ -122,8 +123,9 @@ |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {[type]} cookie [description] |
|
|
|
* @return {[type]} [description] |
|
|
|
* |
|
|
|
* @param {Object} cookie |
|
|
|
* @return {String} |
|
|
|
*/ |
|
|
|
getAgreeClasses(cookie) |
|
|
|
{ |
|
|
@ -246,11 +248,12 @@ |
|
|
|
this.root.firstChild.style.bottom = '0px'; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
push() |
|
|
|
{ |
|
|
|
const essential = this.$('.button--ok.tiny-consent__button:not([disabled])'); |
|
|
|
|
|
|
|
if (essential) { |
|
|
|
essential.click(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@ -262,7 +265,7 @@ |
|
|
|
const data = this.getData(); |
|
|
|
|
|
|
|
if (this.props.options) { |
|
|
|
this.state.options = Object.assign(this.state.options, this.props.options); |
|
|
|
this.state.options = assign(this.state.options, this.props.options); |
|
|
|
} |
|
|
|
|
|
|
|
// check if consent already has set |
|
|
|