From b00a0bfe5398dc71a1a9c2d9433d41dcac64129c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 15 Sep 2020 14:09:22 -0700 Subject: [PATCH] js: Use simplebar ES module. Signed-off-by: Anders Kaseorg --- static/js/ui.js | 2 +- tools/webpack.assets.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/ui.js b/static/js/ui.js index a20d80981f..40f8676848 100644 --- a/static/js/ui.js +++ b/static/js/ui.js @@ -1,6 +1,6 @@ "use strict"; -const SimpleBar = require("simplebar/dist/simplebar"); +const SimpleBar = require("simplebar").default; // What, if anything, obscures the home tab? diff --git a/tools/webpack.assets.json b/tools/webpack.assets.json index 7312afe306..09d8c84090 100644 --- a/tools/webpack.assets.json +++ b/tools/webpack.assets.json @@ -49,7 +49,7 @@ "help": [ "./static/js/bundles/portico", "simplebar/dist/simplebar.css", - "simplebar/dist/simplebar", + "simplebar", "./static/js/portico/help", "./static/js/portico/tabbed-instructions" ],