Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/utils/js_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,11 @@ let parse_fragment () =
let set_fragment args =
let pairs = List.map (fun (n, v) -> n ^ "=" ^ v) args in
let fragment = String.concat "&" pairs in
Url.Current.set_fragment fragment
(* TODO: Replace with
{| Url.Current.set_fragment fragment |}
when https://github.com/ocsigen/js_of_ocaml/pull/1497 is shipped
within learn-ocaml's dependencies. *)
Dom_html.window##.location##.hash := Js.bytestring fragment

let local_args = ref []

Expand Down