소스 검색

Merge pull request #431 from nstCactus/doc/custom-service-types

📝 Document additional allowed types for custom services
Amauri CHAMPEAUX 5 년 전
부모
커밋
2aad968a17
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      README.md

+ 4 - 4
README.md

@@ -1,4 +1,4 @@
-[![](https://data.jsdelivr.com/v1/package/gh/AmauriC/tarteaucitron.js/badge)](https://www.jsdelivr.com/package/gh/AmauriC/tarteaucitron.js) 
+[![](https://data.jsdelivr.com/v1/package/gh/AmauriC/tarteaucitron.js/badge)](https://www.jsdelivr.com/package/gh/AmauriC/tarteaucitron.js)
 [![npm](https://img.shields.io/npm/v/tarteaucitronjs.svg)](https://www.npmjs.com/package/tarteaucitronjs) [![GitHub contributors](https://img.shields.io/github/contributors/AmauriC/tarteaucitron.js.svg)](https://github.com/AmauriC/tarteaucitron.js/graphs/contributors)
 
 tarteaucitron.js
@@ -35,7 +35,7 @@ tarteaucitron.init({
 
     "hashtag": "#tarteaucitron", /* Open the panel with this hashtag */
     "cookieName": "tarteaucitron", /* Cookie name */
-    
+
     "orientation": "middle", /* Banner position (top - bottom) */
     "showAlertSmall": true, /* Show the small banner on bottom right */
     "cookieslist": true, /* Show the cookie list */
@@ -50,7 +50,7 @@ tarteaucitron.init({
     "useExternalCss": false, /* If false, the tarteaucitron.css file will be loaded */
 
     //"cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for subdomain website */
-                          
+
     "readmoreLink": "/cookiespolicy" /* Change the default readmore link pointing to tarteaucitron.io */
 });
 </script>
@@ -60,7 +60,7 @@ tarteaucitron.init({
 ```js
 tarteaucitron.services.mycustomservice = {
   "key": "mycustomservice",
-  "type": "social|analytic|ads|video|support",
+  "type": "ads|analytic|api|comment|other|social|support|video",
   "name": "MyCustomService",
   "needConsent": true,
   "cookies": ['cookie', 'cookie2'],