mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 17:58:22 +01:00
support cache search in google drive api
This commit is contained in:
parent
9ead6c55ef
commit
aeecaa4e81
@ -307,7 +307,7 @@ self.OS.API.onsearch "Google Drive", (t) ->
|
|||||||
arr = []
|
arr = []
|
||||||
term = new RegExp t, "i"
|
term = new RegExp t, "i"
|
||||||
for k, v of G_CACHE
|
for k, v of G_CACHE
|
||||||
if k.match term or (v and v.mime.match term)
|
if (k.match term) or (v and v.mime.match term)
|
||||||
file = k.asFileHandler()
|
file = k.asFileHandler()
|
||||||
file.text = file.basename
|
file.text = file.basename
|
||||||
file.mime = v.mime
|
file.mime = v.mime
|
||||||
|
Loading…
Reference in New Issue
Block a user