Commit d8ecc14b authored by Akikonata's avatar Akikonata

IE svg

parent b2870d71
......@@ -69,12 +69,11 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
var filename = me.getMinderTitle() + p.fileExtension;
if ( typeof ( data ) == 'string' ) {
var url = 'data:text/plain; utf-8,' + encodeURIComponent( data );
alert( '2345678' );
if ( ie_ver() > 0 ) {
console.log( p.fileExtension );
if ( p.fileExtension === '.km' ) {
doSave( 'application/x-javascript', data, me.getMinderTitle() );
} else( p.fileExtension === '.svg' ) {
} else if ( p.fileExtension === '.svg' ) {
doSave( 'image/svg+xml', data, filename );
} else {
doSave( 'text/html', data, filename );
......
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