Skip to content

script doesn't work for websites with specific host-variables #7

@CennoxX

Description

@CennoxX

This script doesn't work for websites with two dots in the host-variable of the switch case statement.

In line 386, const host = location.hostname.split('.').slice(-2).join('.'); specifies that only the last two parts of the hostname are stored as host. So https://qastack.com.ua/ becomes com.ua as host. In the switch statement, however, it is compared to qastack.com.ua.

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