summaryrefslogtreecommitdiff
path: root/plugins/nsfw
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-03 13:38:13 +0300
committerAndrew Dolgov <[email protected]>2018-12-03 13:38:13 +0300
commit71fc6d45bd761a9d2715faa68f2b8c0271ee7169 (patch)
tree47677db3e0d147dbe5c3d3cc71a6576a392881f3 /plugins/nsfw
parenta049b5bd88f3ce07af0e2aa7c21992dc0605eea6 (diff)
refactor error reporting to AppBase; keep exception_error() for now as a shim
Diffstat (limited to 'plugins/nsfw')
-rw-r--r--plugins/nsfw/init.js11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/nsfw/init.js b/plugins/nsfw/init.js
index 40ad2b0ba..adb6d43c0 100644
--- a/plugins/nsfw/init.js
+++ b/plugins/nsfw/init.js
@@ -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);
}
}