From 10eadad62122eaecd135d783b6823fc801890cd0 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 6 Jun 2019 02:00:40 +0200 Subject: [PATCH] Log errors with console.error. --- fediverse/mastodon_cw_toggle.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fediverse/mastodon_cw_toggle.user.js b/fediverse/mastodon_cw_toggle.user.js index 41c73e9..6d1019f 100644 --- a/fediverse/mastodon_cw_toggle.user.js +++ b/fediverse/mastodon_cw_toggle.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Mastodon CW toggle // @description Adds a button to toggle the visibility of all statuses with content warnings on status-pages and profile-pages. -// @version 2019.06.04.1 +// @version 2019.06.06.1 // @author tastytea // @copyright 2019, tastytea (https://tastytea.de/) // @license GPL-3.0-only @@ -49,7 +49,7 @@ function add_button() root = document.getElementsByClassName("footer")[0]; if (root === undefined) { - console.log(`Error: no suitable parent-element found.`); + console.error("Error: no suitable parent-element found."); return; } }