From 36390a564a191a92d470bb650e693546623774af Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 15 Jun 2023 01:14:48 +0200 Subject: Cleanups & bug fixes involving promises Now a promise returning nil doesn't just leave the rest of the then chain hanging. Hooray. --- src/html/env.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/html/env.nim') diff --git a/src/html/env.nim b/src/html/env.nim index ca7e497d..5883dabf 100644 --- a/src/html/env.nim +++ b/src/html/env.nim @@ -6,6 +6,7 @@ import html/htmlparser import io/loader import io/promise import io/request +import io/response import io/window import js/intl import js/javascript @@ -120,6 +121,7 @@ proc addScripting*(window: Window, selector: Selector[int]) = ctx.addBlobModule() ctx.addFormDataModule() ctx.addRequestModule() + ctx.addResponseModule() proc runJSJobs*(window: Window) = window.jsrt.runJSJobs(window.console.err) -- cgit 1.4.1-2-gfad0