commit 8fc0a889b7b175c5f7aedfdbd6b583fc52a5d870
parent e1b72a6fc72766e45a2e67997d981e97ff346a96
Author: Ryan Wolf <rwolf@borderstylo.com>
Date: Tue, 8 Mar 2011 19:51:21 -0800
chrome 10 tries to open links in tiny browser action box
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/popup.html b/popup.html
@@ -25,7 +25,10 @@
var a = document.createElement('a');
a.href = 'http://www.reddit.com' + link.data.permalink;
a.textContent = link.data.title;
- a.onclick = function () { callback(a.href); };
+ a.onclick = function () {
+ callback(a.href);
+ return false;
+ };
var li = document.createElement('li');
li.appendChild(a);
ul.appendChild(li);