Don't initialize the stream if there is no stream.
This commit is contained in:
parent
203e05bf3a
commit
62977e1d15
1 changed files with 1 additions and 0 deletions
|
|
@ -169,6 +169,7 @@ var Stream = {
|
||||||
};
|
};
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
if( $(Stream.selector).length == 0 ) { return }
|
||||||
Diaspora.widgets.subscribe("stream/reloaded", Stream.initialize, Stream);
|
Diaspora.widgets.subscribe("stream/reloaded", Stream.initialize, Stream);
|
||||||
Diaspora.widgets.publish("stream/reloaded");
|
Diaspora.widgets.publish("stream/reloaded");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue