mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-14 11:05:47 +05:00
23 lines
379 B
JavaScript
23 lines
379 B
JavaScript
let m = require('mithril');
|
|
let rs = require('rswebui');
|
|
|
|
function tooltip(text) {
|
|
return m('.tooltip', [
|
|
m('i.fas.fa-info-circle'),
|
|
m('.tooltiptext', text)
|
|
]);
|
|
};
|
|
|
|
async function getSslId() {
|
|
let id = '';
|
|
await rs.rsJsonApiRequest('/rsIdentity/GetOwnSignedIds', {},
|
|
(data) => id = data.ids[0]);
|
|
return id;
|
|
};
|
|
|
|
module.exports = {
|
|
tooltip,
|
|
getSslId,
|
|
};
|
|
|