From 07d326b5bdd6171c83c124c9a12c6ac31fedbdbf Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 17 Mar 2024 16:13:19 -0400 Subject: [PATCH] Remove unused cable import --- assets/js/cable.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 assets/js/cable.js 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 };