@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.
- package/bb-contents.js +5 -8
- 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.
|
|
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.
|
|
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
|
-
|
|
2329
|
-
|
|
2330
|
-
navigator.webdriver ||
|
|
2328
|
+
const isBot = botPatterns.some(pattern => userAgent.includes(pattern)) ||
|
|
2329
|
+
navigator.webdriver === true ||
|
|
2331
2330
|
!navigator.userAgent ||
|
|
2332
|
-
|
|
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)
|