Commit f90a08ca authored by Akikonata's avatar Akikonata

fixed IE bug

parent 620fdb62
......@@ -34,14 +34,12 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
var a = document.createElement( 'a' );
a.setAttribute( 'download', filename );
a.setAttribute( 'href', url );
a.onclick = function () {
alert( "hahaha" );
}
try {
a.dispatchEvent( new MouseEvent( 'click' ) );
} catch ( error ) {
console.log( a );
document.body.appendChild( a );
a.click();
document.body.removeChild( a );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment