Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #29 #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix issue #29 #30

wants to merge 2 commits into from

Conversation

tlkiong
Copy link

@tlkiong tlkiong commented Mar 23, 2016

The issue here is that PhantomJS 2 will not be able to parse any file from the file system to the browser.

For example:
The file path is: C:/abc/xxx.svg
This will be the URL in phantomJS: C:/abc/xxx.svg

Due to that, the error thrown by PhantomJS is that "C" is not a valid protocol (which indeed it isn't).
However, to read a file from the file system on a browser, the protocol is "file:///"
Thus, "file:///" has been prefixed to the file name as shown in the code.

@tlkiong tlkiong mentioned this pull request Mar 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant