Browse Source

Update tarteaucitron.lang with the custom text given

Ricci Dorian 6 năm trước cách đây
mục cha
commit
1d97b3fa95
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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,