diff --git a/server/pages/index.jade b/server/pages/index.jade index 4746068525781..9818e3653e814 100644 --- a/server/pages/index.jade +++ b/server/pages/index.jade @@ -75,7 +75,8 @@ html(lang=lang, dir=isRTL ? 'rtl' : 'ltr', class=isFluidWidth ? 'is-fluid-width' span(class=['environment', 'is-docs']) a(href=devDocsURL title='DevDocs') docs - script( src='/calypso/catch-js-errors.min.js' ) + if 'development' !== env && 'production' !== env + script( src='/calypso/catch-js-errors.min.js' ) script. (function() {