Webix PDFviewer help

Hi all,
it’s seems very difficult for me to understand how to set locally the webix cdn property to use the PDFviewer. I made a Cordova app and when I ran it into the ide simulator (Ripple) it works with no problems but not on device. I copied the extras folder into www/webix/codebase folder of my cordova project and I have set webix.cdn = “…/…/webix/codebase”;
Any ideas?

Another problem is that the pdf toolbar is not responsive, on small display it will truncate. I have tried to exclude the toolbar but tha app hangs. Is there a way to make a personal smaller pdf toolbar?

On mobile it works if I set webix.cdn =https://cdn.webix.com". Download button works on mobile? I tap on it but nothing happens.

Thank you.

copy extras into any subfolder (e.g. ‘cdn’) under ‘codebase’ and set webix.cdn = 'cdn'. i.e. path to pdfjs.js should be codebase/cdn/extras/pdfjs.js

@codejoin my apologies, I was wrong. actually this solution is working with toExcel, but not with toPDF. I have found universal solution as this:

after loading webix.js
<script>
if (!window.location.origin) { //pre IE11 workaround
   window.location.origin =
      window.location.protocol + "//" +
      window.location.hostname +
      (window.location.port ? ':' + window.location.port : '');
}
   webix.cdn = location.origin + "YOUR_PATH_TO_CDN";
   //if your 'extras' folder locates in /webix/codebase then
   //webix.cdn = location.origin + "/webix/codebase";
</script>