about summary refs log tree commit diff
path: root/app/javascript/mastodon/containers/mastodon.js
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-08-08 21:12:45 +0200
committerGitHub <noreply@github.com>2018-08-08 21:12:45 +0200
commitd974c94478c32da80026e9db0229f5e73ad04634 (patch)
treecdc827fc7ef2f41957e666748ded81c189e2f631 /app/javascript/mastodon/containers/mastodon.js
parent58cc6738822d27340f1ce7e99108e3cb4e656d7f (diff)
Remove protocol handler registration (#8127)
Browser UI too confusing / scares people, protocol URIs not used much
Diffstat (limited to 'app/javascript/mastodon/containers/mastodon.js')
-rw-r--r--app/javascript/mastodon/containers/mastodon.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/javascript/mastodon/containers/mastodon.js b/app/javascript/mastodon/containers/mastodon.js
index b29898d3b..b2b0265aa 100644
--- a/app/javascript/mastodon/containers/mastodon.js
+++ b/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());
   }