Check the site minifications etting for realtime plugin; debugging aid.

This commit is contained in:
Brion Vibber 2011-03-14 12:22:49 -07:00
parent eaef01233a
commit ed2d224df5

View File

@ -323,7 +323,12 @@ class RealtimePlugin extends Plugin
function _getScripts()
{
return array(Plugin::staticPath('Realtime', 'realtimeupdate.min.js'));
if (common_config('site', 'minify')) {
$js = 'realtimeupdate.min.js';
} else {
$js = 'realtimeupdate.js';
}
return array(Plugin::staticPath('Realtime', $js));
}
/**