From 92b3d496a4fe4516f35a99b8b6db139e1ada83ac Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Fri, 13 Dec 2013 15:00:56 +1100 Subject: [PATCH] Fixing the bugherd script to use the production one --- app/views/layouts/_bugherd_script.html.haml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/_bugherd_script.html.haml b/app/views/layouts/_bugherd_script.html.haml index f66f865137..326c48da00 100644 --- a/app/views/layouts/_bugherd_script.html.haml +++ b/app/views/layouts/_bugherd_script.html.haml @@ -1,4 +1,4 @@ -- if Rails.env.staging? or Rails.env.production? +- if Rails.env.staging? :javascript (function (d, t) { var bh = d.createElement(t), s = d.getElementsByTagName(t)[0]; @@ -6,3 +6,12 @@ bh.src = '//www.bugherd.com/sidebarv2.js?apikey=4ftxjbgwx7y6ssykayr04w'; s.parentNode.insertBefore(bh, s); })(document, 'script'); + +- elsif Rails.env.production? + :javascript + (function (d, t) { + var bh = d.createElement(t), s = d.getElementsByTagName(t)[0]; + bh.type = 'text/javascript'; + bh.src = '//www.bugherd.com/sidebarv2.js?apikey=xro3uv55objies58o2wrua'; + s.parentNode.insertBefore(bh, s); + })(document, 'script');