From ae634474bf6a39124f1e319603980f1760882bf3 Mon Sep 17 00:00:00 2001 From: LouCypher Date: Fri, 5 Jul 2013 05:12:16 +0700 Subject: [PATCH] Fixed weird behaviour on Opera 15 --- popup.html | 2 +- popup.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/popup.html b/popup.html index 35f36be1..9ab450d7 100644 --- a/popup.html +++ b/popup.html @@ -48,7 +48,7 @@
-
+
diff --git a/popup.js b/popup.js index d15155cf..1abc467f 100644 --- a/popup.js +++ b/popup.js @@ -66,8 +66,9 @@ function getId(event) { } function openLink(event) { + event.preventDefault(); chrome.tabs.create({url: event.target.href}); - return false; + //return false; } function handleUpdate(style) { @@ -84,4 +85,5 @@ tE("open-manage-link", "openManage"); tE("find-styles-link", "findStylesForSite"); document.getElementById("find-styles-link").addEventListener("click", openLink, false); +document.getElementById("open-manage-link").addEventListener("click", openLink, false);