1 import { UserOperation } from './interfaces';
3 export let repoUrl = 'https://github.com/dessalines/rust-reddit-fediverse';
4 export let wsUri = (window.location.protocol=='https:'&&'wss://'||'ws://')+window.location.host + '/service/ws/';
6 export function msgOp(msg: any): UserOperation {
7 let opStr: string = msg.op;
8 return UserOperation[opStr];