Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Enable access to ?hash param #6

@vinliao

Description

@vinliao

I found a helpful Discord post by Mark Knol:

Screenshot from 2022-07-27 11-52-17

Perhaps the code in the first paragraph should be the default. (It's already the default in the Webpack boilerplate...)

It involves a small change:
var fxhash = "oo" + Array(49).fill(0).map(_ => alphabet[(Math.random() * alphabet.length) | 0]).join('');

to

var fxhash = new URLSearchParams(window.location.search).get("hash") ?? "oo" + Array(49).fill(0).map(_ => alphabet[(Math.random() * alphabet.length) | 0]).join('')

And that'll enable things like http://localhost:8080/?hash=oo8NXj8zdYBzETAyPLRj2RxaEqMJHbZf9TLqaCXiFpRyyuHbyq1.

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