Function getUriFragment

  • parse the fragment (hash) from a URL and returns them into

    Parameters

    • Optionalurl: string

      an optional params string or URL containing fragment (hash) params to be parsed

    Returns Record<string, string | boolean>

    an object representing the deserialized params string. [hitbox=false] draw the hitbox in the debug panel (if enabled) [velocity=false] draw the entities velocity in the debug panel (if enabled) [quadtree=false] draw the quadtree in the debug panel (if enabled) [webgl=false] force the renderer to WebGL [debug=false] display the debug panel (if preloaded) [debugToggleKey="s"] show/hide the debug panel (if preloaded)

    // http://www.example.com/index.html#debug&hitbox=true&mytag=value
    let UriFragment = me.utils.getUriFragment();
    console.log(UriFragment["mytag"]); //> "value"