From 9e968f3dccb1978c4386cc96a8b8d3e3ce50bc63 Mon Sep 17 00:00:00 2001 From: Nitwel Date: Tue, 21 Nov 2023 11:53:13 +0100 Subject: [PATCH] fix clipboard out of bounds --- lib/home_adapters/adapter.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/home_adapters/adapter.gd b/lib/home_adapters/adapter.gd index 2ecb2b3..e330a4d 100644 --- a/lib/home_adapters/adapter.gd +++ b/lib/home_adapters/adapter.gd @@ -27,7 +27,7 @@ func _init(type: ADAPTER_TYPES): var clipboard := DisplayServer.clipboard_get() - if clipboard != null: + if clipboard != null && clipboard.find(" ") != -1: var clip_url = clipboard.split(" ")[0] var clip_token = clipboard.split(" ")[1] adapter = adapters[type].new(clip_url, clip_token)