Переглянути джерело

Remove protocol handler registration (#8127)

Browser UI too confusing / scares people, protocol URIs not used much
master
Eugen Rochko 5 роки тому
committed by GitHub
джерело
коміт
d974c94478
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: 4AEE18F83AFDEB23
1 змінених файлів з 0 додано та 7 видалено
  1. +0
    -7
      app/javascript/mastodon/containers/mastodon.js

+ 0
- 7
app/javascript/mastodon/containers/mastodon.js Переглянути файл

@@ -38,13 +38,6 @@ export default class Mastodon extends React.PureComponent {
window.setTimeout(() => Notification.requestPermission(), 60 * 1000);
}

// Protocol handler
// Ask after 5 minutes
if (typeof navigator.registerProtocolHandler !== 'undefined') {
const handlerUrl = window.location.protocol + '//' + window.location.host + '/intent?uri=%s';
window.setTimeout(() => navigator.registerProtocolHandler('web+mastodon', handlerUrl, 'Mastodon'), 5 * 60 * 1000);
}

store.dispatch(showOnboardingOnce());
}



Завантаження…
Відмінити
Зберегти