Commit 620fdb62 authored by Akikonata's avatar Akikonata

fixed IE bug

parent 8f278ba3
......@@ -34,6 +34,9 @@ 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 ) {
......
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