Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruud14 committed Feb 14, 2021
1 parent 7289f21 commit 1139304
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Or follow the steps below.
- This button also works when the 'Active' checkbox is unchecked.
- The 'Remove Manip.' Button:
- Removes the manipulation from the page.
- If the "Auto ⟳" checkbox is checked, the page will automatically reload after pressing the 'Remove Manip.' button. The 'active' checkbox will also be unchecked.
- The 'Delete' button:
- Deletes the current file from the extension storage.
- **You can right click any element on a page to get the css path of that element.**
Expand Down
2 changes: 1 addition & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function load_data_from_storage(data)
}
else if(mode === "exact")
{
if(active_websites.includes(url))
if(active_websites.includes(url) || active_websites.includes(url.slice(0,-1)))
{
let req = {todo: todo, code: filetext, position:position, mode:mode, filename:filename, active:active, reload_on_remove:reload_on_remove}
manipulate(req,false);
Expand Down
3 changes: 3 additions & 0 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,12 @@ class Navigation
if(this.nav_items[index].reload_on_remove === true)
{
this.active_checkbox.checked = false;
this.nav_items[index].active = false;
this.editor.save_current_file();
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
chrome.tabs.update(tabs[0].id, {url: tabs[0].url});
});
break;
}
}
}
Expand Down

0 comments on commit 1139304

Please sign in to comment.