lol browser requests github repo via cors proxy (via npm, run with ./cors_proxy.sh) but then stack overflows

This commit is contained in:
cqc
2022-11-08 22:06:58 -06:00
parent 3b09bb1c11
commit 3fc8125d42
4 changed files with 425 additions and 11 deletions

View File

@ -2,6 +2,11 @@ open Js_of_ocaml
open Lwt.Infix
module NVG = Graphv_webgl
let _ =
Logs.set_reporter (Human.Logs_browser.console_reporter ());
Logs.set_level (Some Debug);
Logs.debug (fun m -> m "hello")
(* This scales the canvas to match the DPI of the window,
it prevents blurriness when rendering to the canvas *)
let scale_canvas (canvas : Dom_html.canvasElement Js.t) =