From e1c183b59719a35eb8554ed30da0108452698074 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 13 Apr 2017 04:54:45 -0400 Subject: [PATCH] Fix link opening in standalone note windows --- chrome/content/zotero/bindings/styled-textbox.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index 7e369de706..f6e9e03c2c 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -442,7 +442,10 @@ break; case 'ZoteroLinkClick': - ZoteroPane.loadURI(event.value); + var zp = typeof ZoteroPane != 'undefined' + ? ZoteroPane + : window.opener.ZoteroPane; + zp.loadURI(event.value); break; default: