switch away from using Cloudflare CDN to ensure grassroots is clear of "trackers" from Safari viewpoint
This commit is contained in:
parent
215ac153d1
commit
cd610fdbee
|
@ -6,12 +6,14 @@ import * as Decode from './decode';
|
|||
import {getScannedJWS, verifyJWS, decodeJWS} from "./shc";
|
||||
|
||||
import { PDFPageProxy } from 'pdfjs-dist/types/src/display/api';
|
||||
import pdfjsWorker from "pdfjs-dist/build/pdf.worker.entry";
|
||||
|
||||
// import {PNG} from 'pngjs'
|
||||
// import {decodeData} from "./decode";
|
||||
// import {Result} from "@zxing/library";
|
||||
|
||||
PdfJS.GlobalWorkerOptions.workerSrc = `https://cdnjs.cloudflare.com/ajax/libs/pdf.js/${PdfJS.version}/pdf.worker.js`
|
||||
PdfJS.GlobalWorkerOptions.workerSrc = pdfjsWorker; // use the built-in version to avoid using cloudflare, which is considered a tracker by Safari
|
||||
// PdfJS.GlobalWorkerOptions.workerSrc = `https://cdnjs.cloudflare.com/ajax/libs/pdf.js/${PdfJS.version}/pdf.worker.js`
|
||||
|
||||
export async function getPayloadBodyFromFile(file: File): Promise<PayloadBody> {
|
||||
// Read file
|
||||
|
|
Loading…
Reference in New Issue