Fix CMap loading for pdf-worker

This commit is contained in:
Martynas Bagdonas 2021-11-08 11:39:46 +02:00
parent f5eb99ad4c
commit af689b17fa

View file

@ -99,7 +99,7 @@ class PDFWorker {
if (message.action === 'FetchBuiltInCMap') {
let response = await Zotero.HTTP.request(
'GET',
CMAPS_URL + event.data.data.name + '.bcmap',
CMAPS_URL + message.data + '.bcmap',
{ responseType: 'arraybuffer' }
);
respData = {