Commit d8ecc14b authored by Akikonata's avatar Akikonata

IE svg

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