2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: Disable cloaking in the test environment

This commit is contained in:
Robin Ward 2016-02-24 17:43:40 -05:00
parent 0a84275800
commit 6b46092aa2
2 changed files with 3 additions and 1 deletions

View file

@ -41,6 +41,8 @@
//
//= require ../../public/javascripts/jquery.magnific-popup-min.js
window.inTestEnv = true;
window.assetPath = function(url) {
if (url.indexOf('defer') === 0) {
return "/assets/" + url;