From 19be37d4112b9c1ff2568af4c652deccd4c0b3c5 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Mon, 17 Apr 2017 13:15:38 +0000
Subject: [PATCH] #0 enh - Configuring dev mode dynamically

---
 securis/src/main/webapp/src/app/common/session.ts |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/securis/src/main/webapp/src/app/common/session.ts b/securis/src/main/webapp/src/app/common/session.ts
index 6bbcfca..b47f998 100644
--- a/securis/src/main/webapp/src/app/common/session.ts
+++ b/securis/src/main/webapp/src/app/common/session.ts
@@ -1,6 +1,9 @@
 import { Locker } from 'angular-safeguard';
 import { Injectable } from '@angular/core';
 
+declare var window: any;
+
+export const IS_DEV_MODE : Boolean = window.location.href.startsWith("http://localhost");
 
 @Injectable()
 export class SeCurisSession {
@@ -8,7 +11,6 @@
   sessionData: any = {}
 
   constructor(private store: Locker) {
-    
   }
 
   public get(key: string): any {

--
Gitblit v1.3.2