Skip to content

Fix issue #29#30

Open
tlkiong wants to merge 2 commits intopiqnt:masterfrom
tlkiong:master
Open

Fix issue #29#30
tlkiong wants to merge 2 commits intopiqnt:masterfrom
tlkiong:master

Conversation

@tlkiong
Copy link
Copy Markdown

@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.

1 participant