Skip to content

Commit

Permalink
Replace '#' with '?' in fragment.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Jun 25, 2024
1 parent e325b0b commit e728330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions playground/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ fn diagram_only_init(set_diagram_only: WriteSignal<bool>) {
if hash.is_empty() {
Some(url.search_params())
} else {
let hash = hash.replacen('#', "?", 1);
match UrlSearchParams::new_with_str(hash.as_str()) {
Ok(search_params) => Some(search_params),
Err(error) => {
Expand Down
1 change: 1 addition & 0 deletions playground/src/app/info_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ fn info_graph_src_init(set_info_graph_src: WriteSignal<String>) {
if hash.is_empty() {
Some(url.search_params())
} else {
let hash = hash.replacen('#', "?", 1);
match UrlSearchParams::new_with_str(hash.as_str()) {
Ok(search_params) => Some(search_params),
Err(error) => {
Expand Down

0 comments on commit e728330

Please sign in to comment.