Skip to content

Inconsistency in value returns #40

@kkufieta

Description

@kkufieta

I would set the hash with e.g.
window.location.hash = Arg.stringify({workid: 12345});

which returns

location.href
"https://som.hex21.com/katya/version_01/#workid=12345"

But with Arg I get very inconsistent results which I can't figure out why:

Arg.all()
{"": undefined, workid: 198582}

Arg.hash()
{workid: 70761}

Arg('workid')
198582

Any ideas why?

I guess I can work with this for now:

Arg.parse(location.hash)
{workid: 12345}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions