summaryrefslogtreecommitdiff
path: root/plugins/Meteor/meteorupdater.js
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Meteor/meteorupdater.js')
-rw-r--r--plugins/Meteor/meteorupdater.js43
1 files changed, 14 insertions, 29 deletions
diff --git a/plugins/Meteor/meteorupdater.js b/plugins/Meteor/meteorupdater.js
index 91d12cde9..9ce68775b 100644
--- a/plugins/Meteor/meteorupdater.js
+++ b/plugins/Meteor/meteorupdater.js
@@ -4,34 +4,19 @@
var MeteorUpdater = function()
{
- return {
-
- init: function(server, port, timeline)
- {
- Meteor.callbacks["process"] = function(data) {
- var d = JSON.parse(data);
-
- var user_url = $('address .url')[0].href+d['user']['screen_name'];
-
- var wlh = window.location.href;
-
- if (wlh.indexOf('?') > 0) {
- wlh = wlh.slice(0, wlh.indexOf('?'))
- }
-
- if (timeline == 'public' ||
- user_url+'/all' == wlh ||
- user_url == wlh) {
-
- RealtimeUpdate.receive(d);
- }
- };
-
- Meteor.host = server;
- Meteor.port = port;
- Meteor.joinChannel(timeline, 0);
- Meteor.connect();
- }
- }
+ return {
+
+ init: function(server, port, timeline)
+ {
+ Meteor.callbacks["process"] = function(data) {
+ RealtimeUpdate.receive(JSON.parse(data));
+ };
+
+ Meteor.host = server;
+ Meteor.port = port;
+ Meteor.joinChannel(timeline, 0);
+ Meteor.connect();
+ }
+ }
}();