@@ -198,7 +198,7 @@ export class Editor extends EditorOrPlayer {
198198 } ) ;
199199 this . sourceEditor . onDidLayout ( ( ) => this . _onDidLayoutChange . fire ( ) ) ;
200200 this . sourceEditor . registerQueryHandlers ( this . queryEngine ) ;
201-
201+
202202 this . dialogs . onDidLayout ( ( ) => this . _onDidLayoutChange . fire ( ) ) ;
203203
204204 this . queryEngine . registerTagHandler ( 'alias' , aliasTagHandlerFactory ( this . queryEngine , this . selectorAliases ) ) ;
@@ -300,7 +300,7 @@ export class Editor extends EditorOrPlayer {
300300 element . appendChild ( this . domNode ) ;
301301 }
302302 // Force a synchronous component update. No performance implications as it is about to render anyway
303- // Makes inject a synchronous method. Way easier to handle injection
303+ // Makes inject a synchronous method. Way easier to handle injection
304304 ( this . domNode as any ) . update ( ) ;
305305 this . appendSourceEditor ( ) ;
306306 this . appendWorkspaceView ( ) ;
@@ -416,13 +416,13 @@ export class Editor extends EditorOrPlayer {
416416 /**
417417 * Downloads a .kcode file with the exported app
418418 */
419- exportToDisk ( ) {
419+ exportToDisk ( fileName = 'my-app.kcode' ) {
420420 const savedApp = this . export ( ) ;
421421 const a = document . createElement ( 'a' ) ;
422422 const file = new Blob ( [ JSON . stringify ( savedApp ) ] , { type : 'application/kcode' } ) ;
423423 const url = URL . createObjectURL ( file ) ;
424424 document . body . appendChild ( a ) ;
425- a . download = 'my-app.kcode' ;
425+ a . download = fileName ;
426426 a . href = url ;
427427 a . click ( ) ;
428428 document . body . removeChild ( a ) ;
0 commit comments