A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
import { changePassphrase } from "./pages/user/ChangePassphrase"; import { EncryptionServiceFactory } from "../common/service/EncryptionServiceFactory"; import log from "loglevel"; import { AlertifyNotificationService } from "../common/service/AlertifyNotificationService"; import { stats } from "./pages/Home"; import { Credentials } from "../common/global/Credentials";
log.setLevel("TRACE"); const es = EncryptionServiceFactory.getEncryptionService(); const ns = new AlertifyNotificationService(); const authToken = Credentials.authToken $("#changePassphraseForm").on("submit", (event) => { event.preventDefault(); changePassphrase(es, ns, authToken); });
const pathMatcher = (path: string) => window.location.pathname == path
if(pathMatcher("/admin")) { stats() }
|