]> cat aescling's git repositories - mastodon.git/commitdiff
Do not ask to register web intent handler
authorThibaut Girka <thib@sitedethib.com>
Wed, 24 Apr 2019 15:55:55 +0000 (17:55 +0200)
committerThibG <thib@sitedethib.com>
Wed, 24 Apr 2019 21:05:11 +0000 (23:05 +0200)
app/javascript/flavours/glitch/containers/mastodon.js

index 4fb6be4760a71a05a2964fb99cab7824df31961a..59eef663638a60cb80419bc31be8dee0f7da1e3a 100644 (file)
@@ -39,13 +39,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());
   }