about summary refs log tree commit diff stats
path: root/src/local/client.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-09 01:59:08 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-09 01:59:08 +0200
commit3c20b253631fa194c84879da8f933fd7a8beae94 (patch)
tree9336924235258161859c3ad72093eabb894f819d /src/local/client.nim
parent5df9ef4c810a1f1975f6e140f4c97aa602d37724 (diff)
downloadchawan-3c20b253631fa194c84879da8f933fd7a8beae94.tar.gz
dom: simplify window.loader
the Option setup hasn't made much sense for a long time now
Diffstat (limited to 'src/local/client.nim')
-rw-r--r--src/local/client.nim5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/local/client.nim b/src/local/client.nim
index 4b81f668..8e83892c 100644
--- a/src/local/client.nim
+++ b/src/local/client.nim
@@ -80,9 +80,6 @@ func console(client: Client): Console {.jsfget.} =
 template selector(client: Client): Selector[int] =
   client.pager.selector
 
-template loader(client: Client): FileLoader =
-  client.pager.loader
-
 template forkserver(client: Client): ForkServer =
   client.pager.forkserver
 
@@ -846,7 +843,7 @@ proc newClient*(config: Config; forkserver: ForkServer; jsctx: JSContext;
     exitCode: -1,
     alive: true,
     factory: newCAtomFactory(),
-    internalLoader: some(loader)
+    loader: loader
   )
   jsrt.setInterruptHandler(interruptHandler, cast[pointer](client))
   let global = JS_GetGlobalObject(jsctx)