sutty/app/views/env/index.js.haml
void df38e12e3c fallar si no existe panel.sutty
fixes #1279

antes fallaba silenciosamente y rompía airbrake que en consecuencia
rompía el resto del javacript
2021-04-28 18:00:56 +00:00

8 lines
180 B
Plaintext

= cache @site do
:plain
window.env = {
AIRBRAKE_SITE_ID: #{@site.id},
AIRBRAKE_API_KEY: "#{@site.airbrake_api_key}",
PANEL_URL: "#{ENV['PANEL_URL']}"
}