Remove capabilities feature
This commit is contained in:
parent
d4c2ca5e5e
commit
e81e85cf9a
|
@ -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);
|
||||||
|
|
|
@ -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');
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue