react-octicon icon indicating copy to clipboard operation
react-octicon copied to clipboard

font url() generated with absolute paths causes problems when displayed via file:// protocol

Open brumm opened this issue 8 years ago • 1 comments

Hi,

I'm not sure whether this is a nwb or react-octicon problem.

I'm using react-octicon inside an nwb project, which is displayed inside a electron application. In electron, urls are usually loaded via the file:// protocol, which causes the fonts to not show up since the browser is trying to load them from /build/<hash> which is the os root :)

Generating only relative filenames url(<hash>.<extension>) would work for both environments.

brumm avatar Feb 05 '16 13:02 brumm

I think that's an nwb problem - do you have an example I could play with?

insin avatar Jun 09 '16 09:06 insin