diff --git a/app/javascript/application.ts b/app/javascript/application.ts index 5bb06591f..524de30c3 100644 --- a/app/javascript/application.ts +++ b/app/javascript/application.ts @@ -323,7 +323,7 @@ var AppView = Backbone.NativeView.extend({ } }); -$(document).ready(function() { +document.addEventListener("DOMContentLoaded", function() { Mousetrap.bind("?", function() { bootstrap.Modal.getOrCreateInstance(document.getElementById('shortcuts')).toggle(); }); diff --git a/app/views/feeds/index.html.erb b/app/views/feeds/index.html.erb index c7b98f58c..c8119f548 100644 --- a/app/views/feeds/index.html.erb +++ b/app/views/feeds/index.html.erb @@ -17,7 +17,7 @@ <% end %>