about summary refs log tree commit diff
path: root/app/javascript/mastodon/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/mastodon/common.js')
-rw-r--r--app/javascript/mastodon/common.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/javascript/mastodon/common.js b/app/javascript/mastodon/common.js
index 2b10b8c30..fba21316a 100644
--- a/app/javascript/mastodon/common.js
+++ b/app/javascript/mastodon/common.js
@@ -4,5 +4,9 @@ export function start() {
   require('font-awesome/css/font-awesome.css');
   require.context('../images/', true);
 
-  Rails.start();
+  try {
+    Rails.start();
+  } catch (e) {
+    // If called twice
+  }
 };