mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add Bugsnag JS logging
This commit is contained in:
3
app/views/layouts/_bugsnag.html.haml
Normal file
3
app/views/layouts/_bugsnag.html.haml
Normal file
@@ -0,0 +1,3 @@
|
||||
%script{src: "//d2wy8f7a9ursnm.cloudfront.net/v6/bugsnag.min.js"}
|
||||
:javascript
|
||||
window.bugsnagClient = bugsnag('#{ENV["BUGSNAG_JS_KEY"]}');
|
||||
@@ -37,6 +37,7 @@
|
||||
#footer
|
||||
%loading
|
||||
|
||||
= render "layouts/bugsnag" if ENV["BUGSNAG_JS_KEY"].present?
|
||||
%script{:src => "https://js.stripe.com/v3/", :type => "text/javascript"}
|
||||
%script{src: "//maps.googleapis.com/maps/api/js?libraries=places,geometry#{ ENV['GOOGLE_MAPS_API_KEY'] ? '&key=' + ENV['GOOGLE_MAPS_API_KEY'] : ''} "}
|
||||
= javascript_include_tag "darkswarm/all"
|
||||
|
||||
@@ -37,6 +37,9 @@ SMTP_PASSWORD: 'f00d'
|
||||
# MAILS_FROM: hello@example.com
|
||||
# MAIL_BCC: manager@example.com
|
||||
|
||||
# Javascript error reporting via Bugsnag.
|
||||
#BUGSNAG_JS_KEY: ""
|
||||
|
||||
# SingleSignOn login for Discourse
|
||||
#
|
||||
# DISCOURSE_SSO_SECRET should be a random string. It must be the same as provided to your Discourse instance.
|
||||
|
||||
Reference in New Issue
Block a user