2019-03-23 01:42:57 +00:00
|
|
|
import { UserOperation } from './interfaces';
|
|
|
|
|
2019-03-21 01:22:31 +00:00
|
|
|
export let repoUrl = 'https://github.com/dessalines/rust-reddit-fediverse';
|
|
|
|
export let wsUri = (window.location.protocol=='https:'&&'wss://'||'ws://')+window.location.host + '/service/ws/';
|
2019-03-23 01:42:57 +00:00
|
|
|
|
|
|
|
export function msgOp(msg: any): UserOperation {
|
|
|
|
let opStr: string = msg.op;
|
|
|
|
return UserOperation[opStr];
|
|
|
|
}
|