UNPKG

@pepperi/components

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.1.

19 lines (15 loc) 495 B
import {Injectable} from '@angular/core'; @Injectable({ providedIn: 'root', }) export class SessionService { svgIcons: string; constructor() { // TODO: Change getWebappDirectory to be local. this.svgIcons = `${this.getWebappDirectory()}/assets/images/symbol-defs.svg#icon-`; } getWebappDirectory() { const webappDirectory = sessionStorage.getItem('webappDirectory'); return webappDirectory ? webappDirectory : ''; } }