Skip to content

Commit

Permalink
fix reload after options change, fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Häublein committed Jan 2, 2021
1 parent 37fb222 commit 89aee51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Modern Password Manager",
"version": "0.4.3",
"version": "0.4.4",
"permissions": ["tabs", "activeTab", "storage"],
"browser_action": {
"default_popup": "popup/index.html",
Expand Down
2 changes: 1 addition & 1 deletion src/options/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function loadData(items) {
async function storeData() {
settings.settings.host = (document.getElementById('url') as HTMLInputElement).value;
await settings.store();
chrome.runtime.sendMessage({"request":"reloadSettings"}, function(response) {});
chrome.extension.getBackgroundPage().window.location.reload();
document.getElementById('status').textContent = 'Options saved.';
}
function createHTML() {
Expand Down

0 comments on commit 89aee51

Please sign in to comment.