Deprecate the "disable unified profiles" feature
The Community Console no longer supports the old per-forum profiles, so
this feature has stopped working.
Change-Id: I8ff6507a03adca483dda3985db92dab486e419e3
diff --git a/src/contentScripts/communityConsole/start.js b/src/contentScripts/communityConsole/start.js
index ae26cec..4e8af62 100644
--- a/src/contentScripts/communityConsole/start.js
+++ b/src/contentScripts/communityConsole/start.js
@@ -3,11 +3,9 @@
import AutoRefresh from './autoRefresh.js';
-const SMEI_UNIFIED_PROFILES = 9;
-
getOptions(null).then(options => {
/* IMPORTANT NOTE: Remember to change this when changing the "ifs" below!! */
- if (options.loaddrafts || options.disableunifiedprofiles) {
+ if (options.loaddrafts) {
var startup =
JSON.parse(document.querySelector('html').getAttribute('data-startup'));
@@ -15,11 +13,6 @@
startup[4][13] = true;
}
- if (options.disableunifiedprofiles) {
- var index = startup[1][6].indexOf(SMEI_UNIFIED_PROFILES);
- if (index > -1) startup[1][6].splice(index, 1);
- }
-
document.querySelector('html').setAttribute(
'data-startup', JSON.stringify(startup));
}