diff --git a/static/js/portico/help.js b/static/js/portico/help.js index 75b6bf22c0..caada076dc 100644 --- a/static/js/portico/help.js +++ b/static/js/portico/help.js @@ -1,5 +1,3 @@ -const Ps = require('perfect-scrollbar'); - (function () { var html_map = {}; var loading = { @@ -42,25 +40,8 @@ const Ps = require('perfect-scrollbar'); var container = $(".markdown")[0]; container.scrollTop = 0; - Ps.update(container); }); - Ps.initialize($(".markdown")[0], { - suppressScrollX: true, - useKeyboard: false, - wheelSpeed: 0.68, - }); - - Ps.initialize($(".sidebar")[0], { - suppressScrollX: true, - useKeyboard: false, - wheelSpeed: 0.68, - }); - - window.onresize = function () { - Ps.update($(".markdown")[0]); - }; - window.addEventListener("popstate", function () { var path = window.location.pathname; $(".markdown .content").html(html_map[path]);