|
@@ -47,6 +47,24 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|
|
block scripts
|
|
block scripts
|
|
|
script(src="#{jsPath}libs/jquery-1.11.1.min.js")
|
|
script(src="#{jsPath}libs/jquery-1.11.1.min.js")
|
|
|
script(src="#{jsPath}libs/angular-1.3.0-beta.14.min.js")
|
|
script(src="#{jsPath}libs/angular-1.3.0-beta.14.min.js")
|
|
|
|
|
+ - if (typeof(sentrySrc) != "undefined")
|
|
|
|
|
+ - if (sentrySrc.match(/^([a-z]+:)?\/\//i))
|
|
|
|
|
+ script(src="#{sentrySrc}")
|
|
|
|
|
+ - else
|
|
|
|
|
+ script(src="#{jsPath}libs/#{sentrySrc}")
|
|
|
|
|
+ - if (typeof(sentrySrc) != "undefined")
|
|
|
|
|
+ script(type="text/javascript").
|
|
|
|
|
+ if (typeof(Raven) != "undefined" && Raven.config) {
|
|
|
|
|
+ Raven.config("#{sentryPublicDSN}", {
|
|
|
|
|
+ // we highly recommend restricting exceptions to a domain in order to filter out clutter
|
|
|
|
|
+ // whitelistUrls: ['example.com/scripts/']
|
|
|
|
|
+ }).install();
|
|
|
|
|
+ }
|
|
|
|
|
+ - if (typeof(user) != "undefined" && typeof (user.email) != "undefined")
|
|
|
|
|
+ script(type="text/javascript").
|
|
|
|
|
+ if (typeof(Raven) != "undefined" && Raven.setUserContext) {
|
|
|
|
|
+ Raven.setUserContext({email: '#{user.email}'});
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
script.
|
|
script.
|
|
|
window.sharelatex = {
|
|
window.sharelatex = {
|