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

23 lines
689 B
TypeScript
Raw Normal View History

import { Component } from "@angular/core";
@Component({
2021-09-01 19:29:24 -04:00
selector: "my-home",
2017-08-27 01:26:00 -04:00
templateUrl: "./home.component.html",
styleUrls: ["./home.component.scss"],
})
export class HomeComponent {
2017-12-23 18:20:59 -05:00
public hostname: string = window.location.origin;
2018-03-24 21:58:01 -04:00
public showPromoPage = this.hostname === "https://dimension.t2bot.io";
2021-09-01 19:01:01 -04:00
public integrationsConfig =
`` +
`"integrations_ui_url": "${this.hostname}/element",\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-24 21:58:01 -04:00
constructor() {
2021-09-01 19:01:01 -04:00
// Do stuff
}
}