function exitApp (stageId) {
	if (!stageId) {
		stageId = getCurrentStageId()
	}
	try {
		TelemetryService.exit(stageId)
	} catch (err) {
		console.error("End telemetry error:", err.message)
	}
	org.ekstep.service.renderer.endGenieCanvas()
}
// So, change exitApp to do the same.
So, change exitApp to do the same.
So change exitApp to do the same .
function exitApp (stageId) {
	if (!stageId) {
		stageId = getCurrentStageId()
	}
	try {
		TelemetryService.exit(stageId)
	} catch (err) {
		console.error("End telemetry error:", err.message)
	}
	org.ekstep.service.renderer.endGenieCanvas()
}
function exitApp ( stageId ) { if ( ! stageId ) { stageId = getCurrentStageId ( ) } try { TelemetryService . exit ( stageId ) } catch ( err ) { console . error ( "End telemetry error:" , err . message ) } org . ekstep . service . renderer . endGenieCanvas ( ) }
So, change exitApp to do the same.
So change exitApp to do the same .