Skip to content

Commit

Permalink
Adding feedback after saving options
Browse files Browse the repository at this point in the history
  • Loading branch information
eltonjr committed Jan 23, 2022
1 parent a475114 commit 3d8e736
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Binary file added assets/options-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/options-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"permissions": ["storage"],
"browser_specific_settings": {
"gecko": {
"id": "tesouro_direto@preco_teorico"
"id": "{f9c2e98c-0e7b-4732-919f-f1bc3116e836}"
}
}
}
5 changes: 5 additions & 0 deletions src/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@ document.querySelector("form").addEventListener("submit", evt => {
browser.storage.sync.set({
formatter: selected
});

const feedback = document.createElement("span");
feedback.setAttribute("style", `color: green;`);
feedback.appendChild(document.createTextNode("Opções salvas!"));
document.querySelector("form").appendChild(feedback);
});

0 comments on commit 3d8e736

Please sign in to comment.