agriget/plugins/toggle_sidebar/init.js

10 lines
253 B
JavaScript
Raw Normal View History

2019-03-22 22:17:29 +08:00
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';
}
};