insin / insin/react-octicon

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

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
71
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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/` which is the os root :)

Generating only relative filenames `url(.)` would work for both environments.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.