From c473aa053c8e087e65ae4e48df87b1cbcae75ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Thu, 31 Aug 2023 09:25:00 +0200 Subject: [PATCH] Update monarch.lua --- monarch/monarch.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/monarch/monarch.lua b/monarch/monarch.lua index d93fd2b..b188c5d 100644 --- a/monarch/monarch.lua +++ b/monarch/monarch.lua @@ -1330,9 +1330,6 @@ function M.on_focus_changed(id, fn) screen.focus_fn = fn end -local function set_on_post(id, fn, url) -end - --- -- Set either a function to be called when msg.post() is called on a specific -- screen or a URL where the message is sent. @@ -1351,7 +1348,7 @@ function M.on_post(id, fn_or_url) if t == "function" then screen.receiver_fn = fn_or_url screen.receiver_url = msg.url() - elseif t == "userdata" then + elseif t == "userdata" or t == "string" then screen.receiver_fn = nil screen.receiver_url = fn_or_url else