From f0c3f439a19f5712740afd1cea6ec76d91427a22 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sat, 21 Aug 2021 22:22:11 +0300 Subject: [PATCH] add network file script --- community/dropbox-notes.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 community/dropbox-notes.lua diff --git a/community/dropbox-notes.lua b/community/dropbox-notes.lua new file mode 100644 index 0000000..395d3b0 --- /dev/null +++ b/community/dropbox-notes.lua @@ -0,0 +1,19 @@ +-- name = "Network file" + +function on_resume() + local args = aio:get_args() + + if next(args) == nil then + ui:show_text("Tap to enter text file URL") + else + http:get(args[1]) + end +end + +function on_click() + aio:show_args_dialog() +end + +function on_network_result(result) + ui:show_text(result) +end