From 074b4375a54e4bbf4539d37b1418eacb2a70f87a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 3 Feb 2021 20:21:03 +0100 Subject: main: Get WebSocket URL from command line for `*client*` Keep the `*client*` global variable, but use the client in `config`, constructed from the WebSocket URL passed from the command line. Not a huge fan of the global variable, but it's way easier to keep it like this rather than passing the client down to the `attach-to-target` and `reload-extension` functions. --- l/src/config.lisp | 1 + 1 file changed, 1 insertion(+) (limited to 'l/src/config.lisp') diff --git a/l/src/config.lisp b/l/src/config.lisp index eb8bede..4e3cbbf 100644 --- a/l/src/config.lisp +++ b/l/src/config.lisp @@ -16,6 +16,7 @@ :documentation "True if the current tab should be reloaded") (ws-client + :reader ws-client :documentation "WebSocket client"))) (defmethod print-object ((object config) stream) -- cgit v1.2.3