Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

32
public/js/skilltags.js Normal file

File diff suppressed because one or more lines are too long

28
public/js/wirechat/sw.js Normal file
View File

@@ -0,0 +1,28 @@
self.addEventListener('message', event => {
if (event.data.type === 'SHOW_NOTIFICATION') {
event.waitUntil(
self.registration.showNotification(event.data.title, event.data.options)
.catch(error => {
})
);
}
if (event.data.type === 'CLOSE_NOTIFICATION') {
event.waitUntil(
self.registration.getNotifications({ tag: event.data.tag })
.then(notifications => {
notifications.forEach(notification => notification.close());
})
.catch(error => {
})
);
}
});
self.addEventListener('notificationclick', event => {
event.notification.close();
if (event.notification.data && event.notification.data.url) {
const windowName='wirechat-conversation';
event.waitUntil(clients.openWindow(event.notification.data.url,windowName));
}
});