Closed cloudchentrial closed 5 years ago
Hi Hanley - I am hoping that problem is the traditional "viewing local graphics on the canvas" issue. You can set Chrome to ignore that. Here are the instructions - they can also be found in the assets template example. https://zimjs.com/templates/assets.html
// NOTE - loading assets into a local file causes security issues in Browswers // this problem does not occur once the files are on a server
// ON FIREFOX: // type: about:config into your Browser URL bar // search for security.fileuri.strict_origin_policy and double click it to set it to false
// ON PC CHROME: // To test locally, find your Chrome icon or shortcut, right click and choose properties // then under Target, adjust your target to include --allow-file-access-from-files (after the quotes) // eg. "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files // YOU MUST OPEN CHROME WITH THIS ICON - then go to your file.
// ON MAC CHROME: // open your terminal anywhere, make sure Google Chrome is currently not running // copy paste this line and hit enter: // open /Applications/Google\ Chrome.app --args --allow-file-access-from-files
// once again, there is no problem for end users when the files are on a server
@danzen gotit. thanks so much. =>
Hi, I have seen your tutorials video - ZIM CAPTURE loadAssets. and i got some problem on Chrome.