src/index.js
function onDownloadClick() {
		const a = document.head.appendChild($('a', { download: '', href: media.src }));

		a.click();

		document.head.removeChild(a);
	}
function onDownloadClick() {
		const a = document.head.appendChild($('a', { download: '', href: media.src }));

		a.click();

		document.head.removeChild(a);
	}
function onDownloadClick ( ) { const a = document . head . appendChild ( $ ( 'a' , { download : '' , href : media . src } ) ) ; a . click ( ) ; document . head . removeChild ( a ) ; }
click from download control
click from download control