You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
would be possible to add a way how to read values of the _config after the plugin was initialized? Or would you accept pull request implementing this?
For example - for analytics purposes, we would like to track the language in which user gave consent. However if the language autodetection is enabled, the language is resolved internally in the plugin, and there doesn't seems to be a way how to get the actual resolved value of the current_lang.
I was thinking about something like:
constconfig=cookieconsent.get('config');console.log(config.current_lang);// or to not confuse with `get` which is used for reading the cookie dataconstconfig=cookieconsent.getConfig();
We would also possibly have an use case for reading other values of the config, not only current_lang.
There would obviously needs to be only a "get" method for the config, as it could be set only on initialization.
The text was updated successfully, but these errors were encountered:
Hi,
would be possible to add a way how to read values of the _config after the plugin was initialized? Or would you accept pull request implementing this?
For example - for analytics purposes, we would like to track the language in which user gave consent. However if the language autodetection is enabled, the language is resolved internally in the plugin, and there doesn't seems to be a way how to get the actual resolved value of the
current_lang
.I was thinking about something like:
We would also possibly have an use case for reading other values of the config, not only
current_lang
.There would obviously needs to be only a "get" method for the config, as it could be set only on initialization.
The text was updated successfully, but these errors were encountered: