Skip to content

why not allow same hostname? #96

Open
@x94fujo6rpg

Description

@x94fujo6rpg

if anyone want to use this in your own repo (github page).
unless you are using other domain.
otherwise your hostname will always be [your_github_name].github.io

not sure what is this check for

url.hostname === location.hostname;

in my case (github page)
this check will always be true => isInvalidUrl => redirect failed

fix:

url.hostname !== location.hostname;

*just thought about this, do this so people can't use it on sites besides your repo

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