Skip to content

Commit

Permalink
Update settings var scope
Browse files Browse the repository at this point in the history
Fixes #130
  • Loading branch information
MisterPhilip committed Nov 7, 2020
1 parent 8f251c3 commit 1a0aeb3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/devtools/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ window.Omnibug = (() => {
});
});

console.log(settings.renameParameters);
let data = request.data.reduce((groups, item) => {
if (!item.hidden) {
const val = item.group;
Expand Down Expand Up @@ -916,7 +917,7 @@ window.Omnibug = (() => {
let styleSheet = d.getElementById("settingsStyles");
const defaults = (new OmnibugSettings).defaults;

const settings = Object.assign({}, defaults, newSettings);
settings = Object.assign({}, defaults, newSettings);

let theme = settings.theme,
themeType = theme === "auto" ? "auto" : "manual";
Expand Down Expand Up @@ -1178,7 +1179,8 @@ window.Omnibug = (() => {
* @param message
*/
receive_message(message) {
switch (message.event || "") {
message.event = message.event || "";
switch (message.event) {
case "webRequest":
addRequest(message);
break;
Expand Down

0 comments on commit 1a0aeb3

Please sign in to comment.