diff --git a/_packs/entry.js b/_packs/entry.js index 5a612e6..bee006a 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 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,