matrix-dimension/web/app/home/home.component.ts

24 lines
704 B
TypeScript
Raw Normal View History

import { Component } from "@angular/core";
@Component({
2017-08-27 05:26:00 +00:00
selector: "my-home",
templateUrl: "./home.component.html",
styleUrls: ["./home.component.scss"],
})
export class HomeComponent {
2017-12-23 23:20:59 +00:00
public hostname: string = window.location.origin;
2018-03-25 01:58:01 +00:00
public showPromoPage = this.hostname === "https://dimension.t2bot.io";
public integrationsConfig = `` +
`"integrations_ui_url": "${this.hostname}/riot",\n` +
`"integrations_rest_url": "${this.hostname}/api/v1/scalar",\n` +
`"integrations_widgets_urls": ["${this.hostname}/widgets"],\n` +
`"integrations_jitsi_widget_url": "${this.hostname}/widgets/jitsi",\n`;
2018-03-25 01:58:01 +00:00
constructor() {
// Do stuff
}
}