Fix per-forum profiles in TW
The per-forum profiles only appeared in TW when the "extrainfo" option
was enabled, when in reality the "perforumprofiles" option should have
been checked instead.
Change-Id: Ibfbc35a50c2e42f8c377e5b5d42e00e56c3d2500
diff --git a/src/contentScripts/publicProfile.js b/src/contentScripts/publicProfile.js
index fec0c85..82e949e 100644
--- a/src/contentScripts/publicProfile.js
+++ b/src/contentScripts/publicProfile.js
@@ -6,11 +6,11 @@
const profileViewRegex = /var view ?= ?(.+\]);/;
-getOptions(['history', 'extrainfo']).then(options => {
+getOptions(['history', 'perforumstats']).then(options => {
if (options?.history)
injectPreviousPostsLinksUnifiedProfile(/* isCommunityConsole = */ false);
- if (options?.extrainfo) {
+ if (options?.perforumstats) {
try {
// Find chart
const chart = document.querySelector(
diff --git a/src/contentScripts/publicProfileStart.js b/src/contentScripts/publicProfileStart.js
index f5a3a2f..5238337 100644
--- a/src/contentScripts/publicProfileStart.js
+++ b/src/contentScripts/publicProfileStart.js
@@ -1,7 +1,7 @@
import {injectScript} from '../common/contentScriptsUtils.js';
import {getOptions} from '../common/optionsUtils.js';
-getOptions('extrainfo').then(options => {
- if (options?.extrainfo)
+getOptions('perforumstats').then(options => {
+ if (options?.perforumstats)
injectScript(chrome.runtime.getURL('extraInfoInject.bundle.js'));
});