update freesound-sourcer for html changes
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
(let [:String url window.location.href
|
||||
:kiss.List<String> parts (url.split "/")
|
||||
creator (nth parts -4)
|
||||
downloadLink (document.getElementById "download_button")
|
||||
downloadLink (.item (document.getElementsByClassName "sound-download-button") 0)
|
||||
dlUrl .href downloadLink
|
||||
filename (.pop (url.split "/"))]
|
||||
(awaitLet [response (API.browser.runtime.sendMessage (object type "downloadFreesound" data [filename creator dlUrl url]))]
|
||||
|
Reference in New Issue
Block a user