Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvilla committed Oct 20, 2021
2 parents b31532a + f63b1ea commit 896a335
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ export class AppComponent implements OnInit {
if (environment.production) {
// Clear both info and warn message in production
// mode without removing them from code actually
// console.warn = () => {};
// console.log = () => {};
console.warn = () => {};
console.log = () => {};
}

// Prevent Dev Tool to show on production mode
// this.app.blockDevToolInProductionMode();
this.app.blockDevToolInProductionMode();

// Before retrieving an actual copy of the workspace we
// check and in case apply, our retro compatibility service
Expand All @@ -66,8 +66,6 @@ export class AppComponent implements OnInit {
let workspace;
try {
workspace = this.workspaceService.get();
//workspace.awsSsoConfiguration.expirationTime = new Date(Date.now() - 4000 * 24);
//this.workspaceService.persist(workspace);

if (!workspace.awsSsoConfiguration.browserOpening) {
workspace.awsSsoConfiguration.browserOpening = Constants.inApp.toString();
Expand Down Expand Up @@ -142,6 +140,8 @@ export class AppComponent implements OnInit {
icon: __dirname + '/assets/images/Leapp.png',
message: 'You had a previous credential file. We made a backup of the old one in the same directory before starting.'
});
} else if(!this.fileService.exists(this.app.awsCredentialPath())) {
this.fileService.writeFileSync(this.app.awsCredentialPath(), '');
}
}

Expand Down

0 comments on commit 896a335

Please sign in to comment.