Fix <label class="text-link"/> in basic viewer (e.g., Add-ons pane)
I'm not sure when this stopped working, or whether the Add-ons pane was in the basic viewer before, but that fixes it.
This commit is contained in:
parent
8797c7f680
commit
c31f0b6b5c
1 changed files with 8 additions and 0 deletions
|
@ -55,3 +55,11 @@ window.addEventListener("keypress", function (event) {
|
|||
browser.reloadWithFlags(browser.webNavigation.LOAD_FLAGS_BYPASS_CACHE);
|
||||
}
|
||||
});
|
||||
|
||||
// Handle <label class="text-link />
|
||||
window.addEventListener("click", function (event) {
|
||||
if (event.originalTarget.localName == 'label'
|
||||
&& event.originalTarget.classList.contains('text-link')) {
|
||||
Zotero.launchURL(event.originalTarget.getAttribute('href'));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue