2020-04-17 18:05:39 -04:00
|
|
|
//FIXME: This works in general, but is not a good thing
|
2019-10-25 19:51:40 -04:00
|
|
|
namespace native {
|
|
|
|
const remote = require('electron').remote;
|
|
|
|
export async function client_version() : Promise<string> {
|
|
|
|
const version = remote.getGlobal("app_version_client");
|
|
|
|
return version || "?.?.?";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
window["native"] = native;
|
|
|
|
|
|
|
|
namespace forum {
|
|
|
|
export interface UserData {
|
|
|
|
session_id: string;
|
|
|
|
username: string;
|
|
|
|
|
|
|
|
application_data: string;
|
|
|
|
application_data_sign: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-07 19:03:54 -04:00
|
|
|
//window["forum"] = forum;
|
|
|
|
|
|
|
|
export = {};
|