Skip to content

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

@brumm

Description

@brumm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions