summaryrefslogtreecommitdiff
path: root/plugins/Meteor
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Meteor')
-rw-r--r--plugins/Meteor/meteorupdater.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins/Meteor/meteorupdater.js b/plugins/Meteor/meteorupdater.js
index 91d12cde9..a7c87330c 100644
--- a/plugins/Meteor/meteorupdater.js
+++ b/plugins/Meteor/meteorupdater.js
@@ -11,17 +11,11 @@ var MeteorUpdater = function()
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('?'))
- }
+ $user_url = $('address .url')[0].href+d['user']['screen_name'];
if (timeline == 'public' ||
- user_url+'/all' == wlh ||
- user_url == wlh) {
+ $user_url+'/all' == window.location.href ||
+ $user_url == window.location.href) {
RealtimeUpdate.receive(d);
}