mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Appease the linter some more
This commit is contained in:
parent
7956f03f0e
commit
faeea3b3a5
@ -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: "",
|
||||
|
@ -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() {
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {Injector} from "@angular/core";
|
||||
import { Injector } from "@angular/core";
|
||||
|
||||
export class ServiceLocator {
|
||||
static injector: Injector;
|
||||
|
Loading…
Reference in New Issue
Block a user