mirror of https://github.com/movim/movim
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.
19 lines
527 B
19 lines
527 B
var SendTo = {
|
|
init: function () {
|
|
document.querySelectorAll('#sendto_share_contacts > li[data-jid]').forEach(li => {
|
|
var store = new ChatOmemoStorage();
|
|
|
|
store.getContactState(li.dataset.jid).then(enabled => {
|
|
if (enabled) li.classList.add('disabled');
|
|
});
|
|
});
|
|
},
|
|
|
|
shareArticle: function (link) {
|
|
SendTo_ajaxShareArticle(link, typeof navigator.share == 'function');
|
|
},
|
|
|
|
shareOs(object) {
|
|
navigator.share(object);
|
|
},
|
|
}
|