blob: 3e0a201a59988ae7bfaf01f1a84d8213449b19b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
module.exports = Ferdium => {
const getMessages = () => {
$.get('/api/_/tickets?filter=unresolved', (data) => {
Ferdium.setBadge(data.tickets.length);
});
};
Ferdium.loop(getMessages);
/* block popups (prevents freshconnect from opening in a new window) */
window.open = (function(url, name) {
console.log(`blocked window.open(${url}, ${name})`);
});
};
|