How to use the disableConsoleAlerts function from raven

Find comprehensive JavaScript raven.disableConsoleAlerts code examples handpicked from public code repositorys.

23
24
25
26
27
28
29
30
31
32
    var options = {
        release: this.options.release,
        serverName: this.options.serverName
    };
    if (this.options.disableConsoleAlerts === true) {
        SentryLib.disableConsoleAlerts();
    }
    global.sentry = SentryLib.config(dsnPublic, reject(options)).install();
};

fork icon0
star icon2
watch icon0

44
45
46
47
48
49
50
51
52
53
    },
  });
}

_setupSentry() {
  Raven.disableConsoleAlerts();
  Raven.config(
    'https://18d04acdd03b4389a36ef7d1d39f8025:5cb2e99bd3634856bfb3711461201439@sentry.io/196829',
    {
      name: this.deviceHash,
fork icon0
star icon0
watch icon0

38
39
40
41
42
43
44
45
46
47
      id: config.userId,
    },
  });
}

raven.disableConsoleAlerts();

raven.install();

return BbPromise.resolve();
fork icon0
star icon0
watch icon0