Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
private loggedInService: LoggedInService,
ext: ExtensionManager,
) {
if (!environment.production) {
if (environment.showObsDebug || environment.disablePolling) {
const spy = create();
if (environment.showObsDebug) {
// spy.log('entity-obs');
// spy.log('entity-request-obs');
spy.log('list-pagination');
spy.log('list-sort');
spy.log('local-list');
spy.log('pageSubObs');
spy.log('actual-page-obs');
spy.log('stat-obs');
// spy.log('list');
}
if (environment.disablePolling) {
spy.pause('poll');
}
}
}
constructor(
private loggedInService: LoggedInService,
store: Store
) {
// We use the username to key the session storage. We could replace this with the users id?
this.userId$ = store.select(state => state.auth.sessionData && state.auth.sessionData.user ? state.auth.sessionData.user.name : null);
if (!environment.production) {
if (environment.showObsDebug || environment.disablePolling) {
const spy = create();
if (environment.showObsDebug) {
// spy.log('entity-obs');
// spy.log('entity-request-obs');
spy.log('list-pagination');
spy.log('list-sort');
spy.log('local-list');
spy.log('pageSubObs');
spy.log('actual-page-obs');
spy.log('stat-obs');
// spy.log('list');
}
if (environment.disablePolling) {
spy.pause('poll');
}
}
}
constructor(
private loggedInService: LoggedInService,
store: Store
) {
// We use the username to key the session storage. We could replace this with the users id?
this.userId$ = store.select(state => state.auth.sessionData && state.auth.sessionData.user ? state.auth.sessionData.user.name : null);
if (!environment.production) {
if (environment.showObsDebug || environment.disablePolling) {
const spy = create();
if (environment.showObsDebug) {
// spy.log('entity-obs');
// spy.log('entity-request-obs');
spy.log('list-pagination');
spy.log('list-sort');
spy.log('local-list');
spy.log('pageSubObs');
spy.log('actual-page-obs');
spy.log('stat-obs');
// spy.log('list');
}
if (environment.disablePolling) {
spy.pause('poll');
}
}
}