Fix build
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { environment } from '@environment/environment';
|
||||
import { Injectable, isDevMode } from '@angular/core';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ProductionGuard {
|
||||
canActivate(): boolean {
|
||||
return environment.production;
|
||||
return !isDevMode();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user