Added option to activate the enableEscalateThread flag
diff --git a/console_inject_start.js b/console_inject_start.js
index 6181e17..f7d670d 100644
--- a/console_inject_start.js
+++ b/console_inject_start.js
@@ -1,7 +1,15 @@
chrome.storage.sync.get(null, function(items) {
- if (items.loaddrafts) {
+ if (items.loaddrafts || items.escalatethreads) {
var startup = JSON.parse(document.querySelector("html").getAttribute("data-startup"));
- startup[4][13] = true;
+
+ if (items.loaddrafts) {
+ startup[4][13] = true;
+ }
+
+ if (items.escalatethreads) {
+ startup[4][20] = true;
+ }
+
document.querySelector("html").setAttribute("data-startup", JSON.stringify(startup));
}
});