Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

click_handlers: Use WinChan as a module.

Anders Kaseorgeb09c137cfdb
diff --git a/.eslintrc.json b/.eslintrc.json
index 81de7d68b85..f5c9352e91d 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -106,7 +106,6 @@
"MessageListView": false,
"Plotly": false,
"UserSearch": false,
- "WinChan": false,
"activity": false,
"admin": false,
"alert_words": false,
diff --git a/static/js/bundles/app.js b/static/js/bundles/app.js
index 06b0104d4c6..1639e361c43 100644
--- a/static/js/bundles/app.js
+++ b/static/js/bundles/app.js
@@ -7,7 +7,6 @@ import "jquery-caret-plugin/src/jquery.caret.js";
import "../../third/jquery-idle/jquery.idle.js";
import "spectrum-colorpicker";
import "jquery-validation/dist/jquery.validate.js";
-import "winchan/winchan.js";
import "handlebars/dist/cjs/handlebars.runtime.js";
import "flatpickr/dist/flatpickr.js";
import "flatpickr/dist/plugins/confirmDate/confirmDate.js";
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js
index 76a0bfa8064..a42f02059fa 100644
--- a/static/js/click_handlers.js
+++ b/static/js/click_handlers.js
@@ -1,4 +1,6 @@
const _ = require("lodash");
+const WinChan = require("winchan");
+
// You won't find every click handler here, but it's a good place to start!
const render_buddy_list_tooltip = require("../templates/buddy_list_tooltip.hbs");
diff --git a/tools/webpack.config.ts b/tools/webpack.config.ts
index 12342d9d729..221af40e3c1 100644
--- a/tools/webpack.config.ts
+++ b/tools/webpack.config.ts
@@ -247,7 +247,6 @@ export default (env?: string): webpack.Configuration[] => {
{path: "../static/js/debug.js"},
{path: "jquery/dist/jquery.js", name: ["$", "jQuery"]},
{path: "handlebars/dist/cjs/handlebars.runtime.js", name: "Handlebars"},
- {path: "winchan/winchan.js", name: "WinChan"},
];
config.module.rules.unshift(...getExposeLoaders(exposeOptions));