dearhive / dearflip-js-flipbook

DearFlip - 3D FlipBook JS/jQuery Plugin. Create 3D Flipbook or PDF Flipbook using JavaScript / jQuery
https://js.dearflip.com/
166 stars 53 forks source link

Bug on link parameters #35

Closed fabrice4821 closed 3 years ago

fabrice4821 commented 3 years ago

Hi,

Options : //(NON-OPTION) source link for PDF.JS file pdfjsSrc: "js/libs/pdf.min.js", //(NON-OPTION) source link for PDFcompatibility.JS file pdfjsCompatibilitySrc: "js/libs/compatibility.js", //(NON-OPTION) source link for PDF.WORKER.JS file pdfjsWorkerSrc: "js/libs/pdf.worker.min.js", //(NON-OPTION) source link for THREE.JS file threejsSrc: "js/libs/three.min.js", //(NON-OPTION) source link for MOCKUP.JS file mockupjsSrc: "js/libs/mockup.min.js",

doesn't work if dFlipLocation is defined.

deepak-ghimire commented 3 years ago

They are relative paths, which take dFlipLocation into account.

So your full URL will be: dFlipLocation + pdfjsSrc

So always use relative path in those links. Relative to dFlipLocation

When dFlipLocation is not defined, it's automatically defined by finding the location of the dflip.js script. Thus dFlipLocation always exists.