From 357ddcf07c45aea101ae91afd2289f03beb614c4 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 20 Sep 2021 22:27:01 -0300 Subject: [PATCH] Revert "Chequear si es bot, no si es parseado" This reverts commit 06b3d8d69b429dc075b8373807c249ffa3b11fd7. --- _packs/entry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_packs/entry.js b/_packs/entry.js index bee006a..5a612e6 100644 --- a/_packs/entry.js +++ b/_packs/entry.js @@ -2,9 +2,9 @@ import BotDetector from 'device-detector-js/dist/parsers/bot' import { Notifier } from '@airbrake/browser' window.bot_detector = new BotDetector -const device = window.bot_detector.parse(navigator.userAgent) +const bot = window.bot_detector.parse(navigator.userAgent) -if (!device.bot) { +if (!bot) { window.airbrake = new Notifier({ projectId: window.env.AIRBRAKE_PROJECT_ID, projectKey: window.env.AIRBRAKE_PROJECT_KEY,