diff --git a/assets/js/cable.js b/assets/js/cable.js deleted file mode 100644 index 03ed74e2..00000000 --- a/assets/js/cable.js +++ /dev/null @@ -1,11 +0,0 @@ -// Action Cable provides the framework to deal with WebSockets in Rails. -// You can generate new channels where WebSocket features live using the rails generate channel command. -let cable; - -function setupCable() { - if (window.booru.userIsSignedIn) { - cable = ActionCable.createConsumer(); - } -} - -export { cable, setupCable };