diff options
author | Sarven Capadisli <csarven@status.net> | 2009-09-21 14:30:12 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-09-21 14:30:12 +0000 |
commit | 13de845e95da9ea579516c4480789819c9a26edd (patch) | |
tree | 231da346d7195da0d5d981da3c721a49f8a3732f /plugins | |
parent | c9bc3900909a85b9b4be31c4dac7f809127a8bf0 (diff) |
Added a check for any URL param. If found, strips them out before
going ahead with realtime timeline update.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Meteor/meteorupdater.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/Meteor/meteorupdater.js b/plugins/Meteor/meteorupdater.js index a7c87330c..91d12cde9 100644 --- a/plugins/Meteor/meteorupdater.js +++ b/plugins/Meteor/meteorupdater.js @@ -11,11 +11,17 @@ var MeteorUpdater = function() Meteor.callbacks["process"] = function(data) { var d = JSON.parse(data); - $user_url = $('address .url')[0].href+d['user']['screen_name']; + 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' == window.location.href || - $user_url == window.location.href) { + user_url+'/all' == wlh || + user_url == wlh) { RealtimeUpdate.receive(d); } |