Explorar el Código

Update tarteaucitron.lang with the custom text given

Ricci Dorian hace 6 años
padre
commit
1d97b3fa95
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      tarteaucitron.js

+ 4 - 0
tarteaucitron.js

@@ -223,6 +223,10 @@ var tarteaucitron = {
 
         // Step 2: load language and services
         tarteaucitron.addScript(pathToLang, '', function () {
+
+          if(tarteaucitronCustomText !== undefined){
+            tarteaucitron.lang = AddOrUpdate(tarteaucitron.lang, tarteaucitronCustomText);
+          }
             tarteaucitron.addScript(pathToServices, '', function () {
 
                 var body = document.body,