Skip to content

Commit

Permalink
Fixed weird behaviour on Opera 15
Browse files Browse the repository at this point in the history
  • Loading branch information
LouCypher committed Jul 4, 2013
1 parent 9e8902b commit ae63447
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<div id="installed"></div>

<div id="find-styles"><a id="find-styles-link" href="#"></a></div>
<div id="manage-styles"><a id="open-manage-link" href="manage.html" target="stylishmanage"></a></div>
<div id="manage-styles"><a id="open-manage-link" href="manage.html"></a></div>

<script src="popup.js"></script>

Expand Down
4 changes: 3 additions & 1 deletion popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);

0 comments on commit ae63447

Please sign in to comment.