Add temporary prefs checkbox to use internal PDF reader

And use when opening PDFs in My Library from items list and
zotero://open-pdf

This also adds "Zotero" to the main PDF reader pref, which will be the
real way to set this, but that option is hidden for now so that group
library items will still open with the configured reader.
This commit is contained in:
Dan Stillman 2021-02-10 03:24:42 -05:00
parent 04c64fe9fc
commit f0816cc8fb
7 changed files with 64 additions and 7 deletions

View file

@ -1182,7 +1182,7 @@ function ZoteroProtocolHandler() {
var opened = false;
if (page) {
try {
opened = await Zotero.OpenPDF.openToPage(path, page);
opened = await Zotero.OpenPDF.openToPage(item, page);
}
catch (e) {
Zotero.logError(e);