Tweak live reload due to CSS bundling in dev

This commit is contained in:
Sam 2014-04-14 15:58:03 +10:00
parent f0f54c9eb3
commit cfccf8b4ed
1 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,8 @@ Discourse.addInitializer(function() {
} else {
$('link').each(function() {
if (this.href.match(me.name) && me.hash) {
// TODO: stop bundling css in DEV please
if (true || (this.href.match(me.name) && me.hash)) {
if (!$(this).data('orig')) {
$(this).data('orig', this.href);
}
@ -68,4 +69,4 @@ Discourse.addInitializer(function() {
});
});
}, true);
}, true);