Commit 620fdb62 authored by Akikonata's avatar Akikonata

fixed IE bug

parent 8f278ba3
...@@ -34,6 +34,9 @@ KM.registerToolbarUI( 'saveto', function ( name ) { ...@@ -34,6 +34,9 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
var a = document.createElement( 'a' ); var a = document.createElement( 'a' );
a.setAttribute( 'download', filename ); a.setAttribute( 'download', filename );
a.setAttribute( 'href', url ); a.setAttribute( 'href', url );
a.onclick = function () {
alert( "hahaha" );
}
try { try {
a.dispatchEvent( new MouseEvent( 'click' ) ); a.dispatchEvent( new MouseEvent( 'click' ) );
} catch ( error ) { } 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