about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-04-24 17:55:55 +0200
committerThibG <thib@sitedethib.com>2019-04-24 23:05:11 +0200
commit1c0402c1038ca5fe85689b38ad44921e5aff9149 (patch)
tree03e8178bded03e7e37090a71155e9c31adbc3156 /app
parentb13c90f3e35cd2ed3d6cfee218b8a8ec62c3b131 (diff)
Do not ask to register web intent handler
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/containers/mastodon.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/javascript/flavours/glitch/containers/mastodon.js b/app/javascript/flavours/glitch/containers/mastodon.js
index 4fb6be476..59eef6636 100644
--- a/app/javascript/flavours/glitch/containers/mastodon.js
+++ b/app/javascript/flavours/glitch/containers/mastodon.js
@@ -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());
   }