@@ -107,7 +107,7 @@ let check_global_data global_data =
107107 | [] -> ()
108108 | l ->
109109 Printf. ksprintf
110- (fun s -> Firebug . console ## (error (Js. string s)))
110+ (fun s -> Console . console ## (error (Js. string s)))
111111 " Code generating the following client values is not linked on the client:\n %s"
112112 (String. concat " \n "
113113 (List. rev_map
@@ -128,7 +128,7 @@ let check_global_data global_data =
128128 | [] -> ()
129129 | l ->
130130 Printf. ksprintf
131- (fun s -> Firebug . console ## (error (Js. string s)))
131+ (fun s -> Console . console ## (error (Js. string s)))
132132 " Code containing the following injections is not linked on the client:\n %s"
133133 (String. concat " \n "
134134 (List. rev_map
@@ -260,12 +260,12 @@ let relink_request_node (node : Dom_html.element Js.t) =
260260let relink_request_nodes root =
261261 Lwt_log. ign_debug ~section " Relink request nodes" ;
262262 if ! Eliom_config. debug_timings
263- then Firebug . console ## (time (Js. string " relink_request_nodes" ));
263+ then Console . console ## (time (Js. string " relink_request_nodes" ));
264264 Eliommod_dom. iter_nodeList
265265 (Eliommod_dom. select_request_nodes root)
266266 relink_request_node;
267267 if ! Eliom_config. debug_timings
268- then Firebug . console ## (timeEnd (Js. string " relink_request_nodes" ))
268+ then Console . console ## (timeEnd (Js. string " relink_request_nodes" ))
269269
270270(* Relinks a-elements, form-elements, and process nodes. The list of
271271 closure nodes is returned for application on [relink_closure_node]
@@ -405,12 +405,12 @@ let load_data_script page =
405405 in
406406 let script = data_script##.text in
407407 if ! Eliom_config. debug_timings
408- then Firebug . console ## (time (Js. string " load_data_script" ));
408+ then Console . console ## (time (Js. string " load_data_script" ));
409409 ignore (Js.Unsafe. eval_string (Js. to_string script));
410410 Eliom_process. reset_request_template () ;
411411 Eliom_process. reset_request_cookies () ;
412412 if ! Eliom_config. debug_timings
413- then Firebug . console ## (timeEnd (Js. string " load_data_script" ))
413+ then Console . console ## (timeEnd (Js. string " load_data_script" ))
414414
415415(* == Scroll the current page such that the top of element with the id
416416 [fragment] is aligned with the window's top. If the optional
@@ -1004,7 +1004,7 @@ let init () =
10041004 Eliom_client_core. set_initial_load () ;
10051005 Lwt. async (fun () ->
10061006 if ! Eliom_config. debug_timings
1007- then Firebug . console ## (time (Js. string " onload" ));
1007+ then Console . console ## (time (Js. string " onload" ));
10081008 let * () =
10091009 Eliom_request_info. set_session_info
10101010 ~uri:
@@ -1043,7 +1043,7 @@ let init () =
10431043 Lwt_mutex. unlock Eliom_client_core. load_mutex;
10441044 run_callbacks load_callbacks;
10451045 if ! Eliom_config. debug_timings
1046- then Firebug . console ## (timeEnd (Js. string " onload" ));
1046+ then Console . console ## (timeEnd (Js. string " onload" ));
10471047 Lwt. return_unit);
10481048 Js. _false
10491049 in
@@ -1459,7 +1459,7 @@ let set_uri ~replace ?fragment uri =
14591459
14601460let replace_page ~do_insert_base new_page =
14611461 if ! Eliom_config. debug_timings
1462- then Firebug . console ## (time (Js. string " replace_page" ));
1462+ then Console . console ## (time (Js. string " replace_page" ));
14631463 if ! only_replace_body
14641464 then
14651465 let new_body = new_page ##. childNodes ## (item 1 ) in
@@ -1475,7 +1475,7 @@ let replace_page ~do_insert_base new_page =
14751475 Dom. replaceChild Dom_html. document new_page
14761476 Dom_html. document##.documentElement);
14771477 if ! Eliom_config. debug_timings
1478- then Firebug . console ## (timeEnd (Js. string " replace_page" ))
1478+ then Console . console ## (timeEnd (Js. string " replace_page" ))
14791479
14801480(* Function to be called for client side services: *)
14811481let set_content_local ?offset ?fragment new_page =
@@ -1484,7 +1484,7 @@ let set_content_local ?offset ?fragment new_page =
14841484 let recover () =
14851485 if ! locked then Lwt_mutex. unlock Eliom_client_core. load_mutex;
14861486 if ! Eliom_config. debug_timings
1487- then Firebug . console ## (timeEnd (Js. string " set_content_local" ))
1487+ then Console . console ## (timeEnd (Js. string " set_content_local" ))
14881488 and really_set () =
14891489 (* Inline CSS in the header to avoid the "flashing effect".
14901490 Otherwise, the browser start to display the page before
@@ -1510,7 +1510,7 @@ let set_content_local ?offset ?fragment new_page =
15101510 scroll_to_fragment ?offset fragment;
15111511 advance_page () ;
15121512 if ! Eliom_config. debug_timings
1513- then Firebug . console ## (timeEnd (Js. string " set_content_local" ));
1513+ then Console . console ## (timeEnd (Js. string " set_content_local" ));
15141514 Lwt. return_unit
15151515 in
15161516 let cancel () = recover () ; Lwt. return_unit in
@@ -1519,7 +1519,7 @@ let set_content_local ?offset ?fragment new_page =
15191519 let * () = Lwt_mutex. lock Eliom_client_core. load_mutex in
15201520 Eliom_client_core. set_loading_phase () ;
15211521 if ! Eliom_config. debug_timings
1522- then Firebug . console ## (time (Js. string " set_content_local" ));
1522+ then Console . console ## (time (Js. string " set_content_local" ));
15231523 run_onunload_wrapper really_set cancel)
15241524 (fun exn ->
15251525 recover () ;
@@ -1619,19 +1619,19 @@ let set_content ~replace ~uri ?offset ?fragment content =
16191619 scroll_to_fragment ?offset fragment;
16201620 advance_page () ;
16211621 if ! Eliom_config. debug_timings
1622- then Firebug . console ## (timeEnd (Js. string " set_content" ));
1622+ then Console . console ## (timeEnd (Js. string " set_content" ));
16231623 Lwt. return_unit
16241624 and recover () =
16251625 if ! locked then Lwt_mutex. unlock Eliom_client_core. load_mutex;
16261626 if ! Eliom_config. debug_timings
1627- then Firebug . console ## (timeEnd (Js. string " set_content" ))
1627+ then Console . console ## (timeEnd (Js. string " set_content" ))
16281628 in
16291629 Lwt. catch
16301630 (fun () ->
16311631 let * () = Lwt_mutex. lock Eliom_client_core. load_mutex in
16321632 Eliom_client_core. set_loading_phase () ;
16331633 if ! Eliom_config. debug_timings
1634- then Firebug . console ## (time (Js. string " set_content" ));
1634+ then Console . console ## (time (Js. string " set_content" ));
16351635 let g () = recover () ; Lwt. return_unit in
16361636 run_onunload_wrapper really_set g)
16371637 (fun exn ->
0 commit comments