Minor fixes
This commit is contained in:
parent
16fffcd9d0
commit
1e7ebeb23f
|
@ -10,6 +10,7 @@ vk_music.search "Kasabian", "L.S.F. (Lost Souls Forever)", "2:17", (url) ->
|
||||||
audio.setAttribute "src", url
|
audio.setAttribute "src", url
|
||||||
document.getElementsByTagName("body")[0].appendChild audio
|
document.getElementsByTagName("body")[0].appendChild audio
|
||||||
audio.play()
|
audio.play()
|
||||||
|
false
|
||||||
```
|
```
|
||||||
|
|
||||||
### JavaScript example
|
### JavaScript example
|
||||||
|
@ -21,6 +22,7 @@ vk_music.search("Kasabian", "L.S.F. (Lost Souls Forever)", "2:17", function(url)
|
||||||
audio = document.createElement("audio");
|
audio = document.createElement("audio");
|
||||||
audio.setAttribute("src", url);
|
audio.setAttribute("src", url);
|
||||||
document.getElementsByTagName("body")[0].appendChild(audio);
|
document.getElementsByTagName("body")[0].appendChild(audio);
|
||||||
return audio.play();
|
audio.play();
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
```
|
```
|
Loading…
Reference in New Issue