[chrome] only log about the dtps button when it's actually used
diff --git a/chrome/loader.js b/chrome/loader.js
index 9268171..e317d2b 100644
--- a/chrome/loader.js
+++ b/chrome/loader.js
@@ -164,18 +164,18 @@
console.log("[DTPS Chrome]", "Redirecting after login...");
window.location.href = "/power+/";
} else {
- console.log("[DTPS Chrome]", "Initializing the DTPS button...");
-
- let releaseType = null;
- const loaderPref = window.localStorage.getItem("dtpsLoaderPref");
- if (loaderPref === "external") releaseType = "Power+ (external)";
- if (loaderPref === "local") releaseType = "Power+ (local)";
-
let dtpsWasInjected = false;
-
function injectDTPSButton(node) {
if (dtpsWasInjected) return;
dtpsWasInjected = true;
+
+ console.log("[DTPS Chrome]", "Initializing the DTPS button...");
+
+ let releaseType = null;
+ const loaderPref = window.localStorage.getItem("dtpsLoaderPref");
+ if (loaderPref === "external") releaseType = "Power+ (external)";
+ if (loaderPref === "local") releaseType = "Power+ (local)";
+
node.insertAdjacentHTML("beforeend", /*html*/`
<li class="menu-item ic-app-header__menu-list-item">
<a onclick="" id="global_nav_dtps_link" role="button" href="/power+/" class="ic-app-header__menu-list-link" referrerpolicy="no-referrer">
diff --git a/chrome/manifest.json b/chrome/manifest.json
index 6c2e814..1b8e191 100644
--- a/chrome/manifest.json
+++ b/chrome/manifest.json
@@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Power+",
"description": "A better UI for Canvas LMS",
- "version": "3.3.0",
+ "version": "3.3.1",
"content_scripts": [
{
"run_at": "document_start",
@@ -30,7 +30,6 @@
"48": "48.png",
"128": "128.png"
},
- "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjXCLvusGSp3pirlE8WJ3jA5MtpKC5IdKuDEKBz9xqgDkJMeJ5+i6xpt9AeThgRx8G454O068TbSTSFAITU7P3kRQqaEMMkBLfojMfwYnO1YsvwiDd1bWebwsZQ/ArD4OybrYikn81FFGVW8bReOZ4iXspj9jP3ciCu1uHD4fPfUiJen+54I3JdoolUz0oTEZtFMPEmoukotH3AZAaFmMInR0RPa+GbrkZOspXpegI4O/ur/3t/DY7Q3QpoKruJi9UJNf31VLX8MMalvNQxWn7WmOoIhO1phAE0ytAZ62uqCkIwaJaQfl9++QftuQ5GjNoswWSqlXtj1D6sqMx0ZvtQIDAQAB",
"browser_specific_settings": {
"gecko": {
"id": "{45a61d8d-6de3-4718-b422-a8a777f2d8aa}"