Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Commit

Permalink
Do not display messages multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautier committed Aug 30, 2011
1 parent f0a8efd commit b938017
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion static/bookmarklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ var Lookup = (function() {
// or if it's you
if (screen_name == your_screen_name)
return;
// only display results once
if ($('a.followsyou,a.followsyounot', this).size())
return;

if (response[screen_name]) {
tag = $('<a>', {text: 'follows me'})
Expand Down Expand Up @@ -81,4 +84,4 @@ var Lookup = (function() {

(function() {
Lookup.search();
})();
})();

0 comments on commit b938017

Please sign in to comment.