From 8e330e395fe7bb2ec06ebc525c47e0edaa0445bf Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sun, 19 Mar 2023 14:55:50 +0000 Subject: [PATCH] Apply suggestions from code review in #104 Co-authored-by: rugk --- src/content_script/misskeyInject.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/content_script/misskeyInject.js b/src/content_script/misskeyInject.js index c5607af..c70dc0a 100644 --- a/src/content_script/misskeyInject.js +++ b/src/content_script/misskeyInject.js @@ -101,8 +101,6 @@ async function injectInteractionButtons() { } catch (error) { // Interaction buttons failed to appear } - - } /** @@ -120,9 +118,9 @@ function initInjections() { * @returns {void} */ async function init() { - if (typeof MISSKEY_INJECTED_CLASS === "undefined"){ + if (typeof MISSKEY_INJECTED === "undefined"){ // eslint-disable-next-line vars-on-top, no-var - var MISSKEY_INJECTED_CLASS = true; + var MISSKEY_INJECTED = true; } else { // init has already run return; @@ -134,7 +132,7 @@ async function init() { initInjections(); }); - // monitor only the main column in the Mastodon UI + // monitor only the main column in the Misskey UI const mainColumn = await waitForElement( ".mk-app > .main", false,