Introduce isStagingServer util method
This commit is contained in:
parent
4cdb6fab08
commit
cd44a7a033
24 changed files with 80 additions and 71 deletions
|
@ -5,7 +5,7 @@ import { getEnvironment, Environment } from '../environment';
|
|||
import * as log from '../logging/log';
|
||||
|
||||
export function deprecated(message?: string): void {
|
||||
if (getEnvironment() === Environment.Development) {
|
||||
if (getEnvironment() !== Environment.PackagedApp) {
|
||||
log.error(`This method is deprecated: ${message}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue