Revert "Chequear si es bot, no si es parseado"
This reverts commit 06b3d8d69b
.
This commit is contained in:
parent
06b3d8d69b
commit
357ddcf07c
1 changed files with 2 additions and 2 deletions
|
@ -2,9 +2,9 @@ import BotDetector from 'device-detector-js/dist/parsers/bot'
|
||||||
import { Notifier } from '@airbrake/browser'
|
import { Notifier } from '@airbrake/browser'
|
||||||
|
|
||||||
window.bot_detector = new BotDetector
|
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({
|
window.airbrake = new Notifier({
|
||||||
projectId: window.env.AIRBRAKE_PROJECT_ID,
|
projectId: window.env.AIRBRAKE_PROJECT_ID,
|
||||||
projectKey: window.env.AIRBRAKE_PROJECT_KEY,
|
projectKey: window.env.AIRBRAKE_PROJECT_KEY,
|
||||||
|
|
Loading…
Reference in a new issue