Chequear si es bot, no si es parseado

This commit is contained in:
Cat /dev/Nulo 2021-09-20 15:38:26 -03:00
parent dd230c2fa1
commit 06b3d8d69b

View file

@ -2,9 +2,9 @@ import BotDetector from 'device-detector-js/dist/parsers/bot'
import { Notifier } from '@airbrake/browser'
window.bot_detector = new BotDetector
const bot = window.bot_detector.parse(navigator.userAgent)
const device = window.bot_detector.parse(navigator.userAgent)
if (!bot) {
if (!device.bot) {
window.airbrake = new Notifier({
projectId: window.env.AIRBRAKE_PROJECT_ID,
projectKey: window.env.AIRBRAKE_PROJECT_KEY,