Remove capabilities feature

This commit is contained in:
Andreas Nedbal 2023-01-17 05:44:45 +01:00 committed by Andreas Nedbal
parent d4c2ca5e5e
commit e81e85cf9a
2 changed files with 0 additions and 15 deletions

View File

@ -1,6 +1,5 @@
import start from 'retrospring/common'; import start from 'retrospring/common';
import initAnswerbox from 'retrospring/features/answerbox/index'; import initAnswerbox from 'retrospring/features/answerbox/index';
import initCapabilities from 'retrospring/features/capabilities';
import initInbox from 'retrospring/features/inbox/index'; import initInbox from 'retrospring/features/inbox/index';
import initUser from 'retrospring/features/user'; import initUser from 'retrospring/features/user';
import initSettings from 'retrospring/features/settings/index'; import initSettings from 'retrospring/features/settings/index';
@ -14,7 +13,6 @@ import initWebpush from 'retrospring/features/webpush';
import initWebpushSettingsButtons from 'retrospring/features/webpush/settingsButtons'; import initWebpushSettingsButtons from 'retrospring/features/webpush/settingsButtons';
start(); start();
document.addEventListener('turbo:load', initCapabilities);
document.addEventListener('DOMContentLoaded', initAnswerbox); document.addEventListener('DOMContentLoaded', initAnswerbox);
document.addEventListener('DOMContentLoaded', initInbox); document.addEventListener('DOMContentLoaded', initInbox);
document.addEventListener('DOMContentLoaded', initUser); document.addEventListener('DOMContentLoaded', initUser);

View File

@ -1,13 +0,0 @@
export default (): void => {
if ('share' in navigator) {
document.body.classList.add('cap-web-share');
}
if ('serviceWorker' in navigator) {
document.body.classList.add('cap-service-worker');
}
if ('Notification' in window) {
document.body.classList.add('cap-notification');
}
}