Fixed weird behaviour on Opera 15
This commit is contained in:
parent
9e8902bfe1
commit
ae634474bf
|
@ -48,7 +48,7 @@
|
||||||
<div id="installed"></div>
|
<div id="installed"></div>
|
||||||
|
|
||||||
<div id="find-styles"><a id="find-styles-link" href="#"></a></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>
|
<script src="popup.js"></script>
|
||||||
|
|
||||||
|
|
4
popup.js
4
popup.js
|
@ -66,8 +66,9 @@ function getId(event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function openLink(event) {
|
function openLink(event) {
|
||||||
|
event.preventDefault();
|
||||||
chrome.tabs.create({url: event.target.href});
|
chrome.tabs.create({url: event.target.href});
|
||||||
return false;
|
//return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleUpdate(style) {
|
function handleUpdate(style) {
|
||||||
|
@ -84,4 +85,5 @@ tE("open-manage-link", "openManage");
|
||||||
tE("find-styles-link", "findStylesForSite");
|
tE("find-styles-link", "findStylesForSite");
|
||||||
|
|
||||||
document.getElementById("find-styles-link").addEventListener("click", openLink, false);
|
document.getElementById("find-styles-link").addEventListener("click", openLink, false);
|
||||||
|
document.getElementById("open-manage-link").addEventListener("click", openLink, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user