agriget/plugins/toggle_sidebar/init.js
2019-03-22 10:17:29 -04:00

10 lines
253 B
JavaScript

Plugins.Toggle_Sidebar = {
toggle: function() {
Feeds.toggle();
const label = document.querySelector("i.toggle-sidebar-label");
label.innerHTML = Element.visible("feeds-holder") ? 'chevron_left' : 'chevron_right';
}
};