@bebranded/bb-contents 1.1.22 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bb-contents.js +5 -8
  2. package/package.json +1 -1
package/bb-contents.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * BeBranded Contents
3
3
  * Contenus additionnels français pour Webflow
4
- * @version 1.1.22
4
+ * @version 1.1.23
5
5
  * @author BeBranded
6
6
  * @license MIT
7
7
  * @website https://www.bebranded.xyz
@@ -10,7 +10,7 @@
10
10
  'use strict';
11
11
 
12
12
  // Version du script
13
- const BB_CONTENTS_VERSION = '1.1.22';
13
+ const BB_CONTENTS_VERSION = '1.1.23';
14
14
 
15
15
  // Créer l'objet temporaire pour la configuration si il n'existe pas
16
16
  if (!window._bbContentsConfig) {
@@ -2325,13 +2325,10 @@
2325
2325
  'pagespeed', 'pingdom', 'uptime', 'monitor', 'check', 'test'
2326
2326
  ];
2327
2327
 
2328
- // Vérifications supplémentaires pour détecter plus de bots
2329
- const isBot = botPatterns.some(pattern => userAgent.includes(pattern)) ||
2330
- navigator.webdriver ||
2328
+ const isBot = botPatterns.some(pattern => userAgent.includes(pattern)) ||
2329
+ navigator.webdriver === true ||
2331
2330
  !navigator.userAgent ||
2332
- !window.chrome || // Détecte les navigateurs headless
2333
- navigator.userAgent.includes('HeadlessChrome') ||
2334
- window.navigator.plugins.length === 0; // Bots n'ont souvent pas de plugins
2331
+ navigator.userAgent.includes('HeadlessChrome');
2335
2332
 
2336
2333
  if (isBot) {
2337
2334
  // Log pour debug (en mode debug seulement)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bebranded/bb-contents",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "description": "Contenus additionnels français pour Webflow",
5
5
  "main": "bb-contents.js",
6
6
  "scripts": {