Sha256: bd9e3568222cbf88df88ad34052911746634cc57fd398fd7774916dcdf48d8b1
Contents?: true
Size: 665 Bytes
Versions: 109
Compression:
Stored size: 665 Bytes
Contents
import Rollbar from 'rollbar' // TODO: testear con capybara, si se puede let rollbarToken = document.head.querySelector('meta[name=rollbar-token]') rollbarToken = rollbarToken && rollbarToken.content let rollbarEnv = document.head.querySelector('meta[name=rollbar-env]') rollbarEnv = rollbarEnv && rollbarEnv.content rollbarEnv = rollbarEnv || 'unknown' window.Rollbar = Rollbar Rollbar.init() Rollbar.global({ itemsPerMinute: 2, maxItems: 5 }) Rollbar.configure({ enabled: !!rollbarToken, accessToken: rollbarToken, captureUncaught: true, captureUnhandledRejections: true, reportLevel: 'warning', payload: { environment: rollbarEnv } })
Version data entries
109 entries across 109 versions & 1 rubygems