Skip to content
Snippets Groups Projects
Unverified Commit d974c944 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Remove protocol handler registration (#8127)

Browser UI too confusing / scares people, protocol URIs not used much
parent 58cc6738
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment