mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:25:54 +00:00
refactor error reporting to AppBase; keep exception_error() for now as a shim
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
function nsfwShow(elem) {
|
||||
try {
|
||||
content = elem.parentNode.getElementsBySelector("div.nswf.content")[0];
|
||||
let content = elem.parentNode.getElementsBySelector("div.nswf.content")[0];
|
||||
|
||||
if (content) {
|
||||
Element.toggle(content);
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
exception_error("nswfSHow", e);
|
||||
if (content) {
|
||||
Element.toggle(content);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user