3966d8fc9a1ad6b0b593fae4cc20fdfc07b02f3a — LordNature 3 years ago 360924f
assets/vip.js: Fixed infinite scrolling bug.

Because the WAP and CPP had `http://` rather than `https://` links, they would
reject loading the m4a file due to the following error in console:
`Blocked loading mixed display content`
`Uncaught (inpromise DOMException): The media resource indicated by the src att-
ribute or assigned media provider object was not suitable.`

This patch adds a workaround that replaces the `http://` with `https://`.
1 files changed, 2 insertions(+), 2 deletions(-)

M assets/vip.js
M assets/vip.js => assets/vip.js +2 -2
@@ 59,7 59,7 @@ function parse_XML(data) {
		track = {
			creator: playlist[i].getElementsByTagName('creator')[0].firstChild.nodeValue,
			title: playlist[i].getElementsByTagName('title')[0].firstChild.nodeValue,
			location: playlist[i].getElementsByTagName('location')[0].firstChild.nodeValue
			location: playlist[i].getElementsByTagName('location')[0].firstChild.nodeValue.replace("http://", "https://")

@@ 239,4 239,4 @@ window.onload = function() {

	// Load playlist and track
	load_playlist (playlist, track);
\ No newline at end of file