ttrss/plugins/nsfw/init.js

13 lines
195 B
JavaScript

/* global Plugins */
Plugins.NSFW = {
toggle: function(elem) {
const content = elem.domNode.parentNode.querySelector(".nswf.content");
if (content) {
Element.toggle(content);
}
}
}