Skip to content

Commit

Permalink
Merge pull request #347 from usnistgov/fix/disable-fake-backend
Browse files Browse the repository at this point in the history
Disabled fake backend
  • Loading branch information
RayPlante authored Sep 18, 2024
2 parents e2a95cf + ee2c2fc commit 3343b9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion angular/src/app/_helpers/fakeBackendInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export class FakeBackendInterceptor implements HttpInterceptor {

// wrap in delayed observable to simulate server api call
return of(null).pipe(mergeMap(() => {
console.log("request.url", request.url);
alert("You are using fake backend!");

console.log("request.url", request.url);

// RPA
if (request.url.indexOf('/rpa') > -1 && request.method === 'GET') {
Expand Down
2 changes: 1 addition & 1 deletion angular/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ enableProdMode();
{ provide: ErrorHandler, useClass: AppErrorHandler },
GoogleAnalyticsService,
D3Service,
fakeBackendProvider,
// fakeBackendProvider,
DatePipe
],
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA]
Expand Down

0 comments on commit 3343b9c

Please sign in to comment.