better strategy for Diaspora.backboneEnabled (ATM)

This commit is contained in:
danielgrippi 2011-12-28 16:08:05 -05:00 committed by Dennis Collinson
parent bbc7db3152
commit 096efee929

View file

@ -85,7 +85,7 @@
// temp hack to check if backbone is enabled for the page
Diaspora.backboneEnabled = function(){
return window.app.router.routes[window.location.pathname.replace("/","")];
return window.app.stream !== undefined;
}
window.Diaspora = Diaspora;