|
@@ -26,7 +26,8 @@ var tarteaucitron = {
|
|
language = tarteaucitron.getLanguage(),
|
|
language = tarteaucitron.getLanguage(),
|
|
pathToLang = cdn + 'lang/tarteaucitron.' + language + '.js',
|
|
pathToLang = cdn + 'lang/tarteaucitron.' + language + '.js',
|
|
timestamp = new Date().getTime(),
|
|
timestamp = new Date().getTime(),
|
|
- pathToServices = cdn + 'tarteaucitron.services.js?c=' + encodeURIComponent(tarteaucitron.cookie.read()) + '&_' + timestamp,
|
|
|
|
|
|
+ pathToServices = cdn + 'tarteaucitron.services.js',
|
|
|
|
+ parametersCom = '?uuid=' + tarteaucitron.uuid + '&c=' + encodeURIComponent(tarteaucitron.cookie.read()) + '&_' + timestamp,
|
|
linkElement = document.createElement('link'),
|
|
linkElement = document.createElement('link'),
|
|
defaults = {
|
|
defaults = {
|
|
"grayArea": false,
|
|
"grayArea": false,
|
|
@@ -37,6 +38,11 @@ var tarteaucitron = {
|
|
"showAlertSmall": true
|
|
"showAlertSmall": true
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ // is the commercial version ?
|
|
|
|
+ if (tarteaucitron.uuid !== '' && tarteaucitron.uuid !== undefined) {
|
|
|
|
+ pathToServices = pathToServices + parametersCom;
|
|
|
|
+ }
|
|
|
|
+
|
|
// Step 0: get params
|
|
// Step 0: get params
|
|
if (params !== undefined) {
|
|
if (params !== undefined) {
|
|
tarteaucitron.extend(defaults, params);
|
|
tarteaucitron.extend(defaults, params);
|