fix clipboard out of bounds
This commit is contained in:
parent
0c33b4ab1b
commit
9e968f3dcc
|
@ -27,7 +27,7 @@ func _init(type: ADAPTER_TYPES):
|
||||||
|
|
||||||
var clipboard := DisplayServer.clipboard_get()
|
var clipboard := DisplayServer.clipboard_get()
|
||||||
|
|
||||||
if clipboard != null:
|
if clipboard != null && clipboard.find(" ") != -1:
|
||||||
var clip_url = clipboard.split(" ")[0]
|
var clip_url = clipboard.split(" ")[0]
|
||||||
var clip_token = clipboard.split(" ")[1]
|
var clip_token = clipboard.split(" ")[1]
|
||||||
adapter = adapters[type].new(clip_url, clip_token)
|
adapter = adapters[type].new(clip_url, clip_token)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user