Appease the linter some more

This commit is contained in:
Travis Ralston 2017-12-22 22:17:09 -07:00
parent 7956f03f0e
commit faeea3b3a5
4 changed files with 4 additions and 4 deletions

View File

@ -147,7 +147,7 @@ export class NewWidgetComponent {
type: this.widgetTypes[0],
name: this.defaultName,
url: window.location.origin,
//ownerId: this.userId, // we don't have a user id
ownerId: SessionStorage.userId,
dimension: {
newUrl: "",
newName: "",

View File

@ -7,7 +7,7 @@ export class SessionStorage {
public static roomId: string;
public static editIntegration: Integration;
public static editIntegrationId: string;
public static editsRequested: number = 0;
public static editsRequested = 0;
private constructor() {
}

View File

@ -13,7 +13,7 @@ export class ApiService {
}
getTokenOwner(scalarToken: String): Promise<string> {
return this.http.get("/api/v1/dimension/whoami", {params:{scalar_token:scalarToken}})
return this.http.get("/api/v1/dimension/whoami", {params: {scalar_token: scalarToken}})
.map(res => res.status === 200 ? res.json()["userId"] : null).toPromise();
}

View File

@ -1,4 +1,4 @@
import {Injector} from "@angular/core";
import { Injector } from "@angular/core";
export class ServiceLocator {
static injector: Injector;