mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 17:51:41 +00:00
fallar si no existe panel.sutty
fixes #1279 antes fallaba silenciosamente y rompía airbrake que en consecuencia rompía el resto del javacript
This commit is contained in:
parent
fdabd16663
commit
df38e12e3c
1 changed files with 2 additions and 2 deletions
4
app/views/env/index.js.haml
vendored
4
app/views/env/index.js.haml
vendored
|
@ -1,7 +1,7 @@
|
|||
= cache @site do
|
||||
:plain
|
||||
window.env = {
|
||||
AIRBRAKE_SITE_ID: #{@site&.id || 1},
|
||||
AIRBRAKE_API_KEY: "#{@site&.airbrake_api_key}",
|
||||
AIRBRAKE_SITE_ID: #{@site.id},
|
||||
AIRBRAKE_API_KEY: "#{@site.airbrake_api_key}",
|
||||
PANEL_URL: "#{ENV['PANEL_URL']}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue