Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davtur19 committed Feb 20, 2021
1 parent 13ede60 commit 2e3e2f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dotgit.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ chrome.storage.local.get(["checked", "withExposedGit", "options"], function (res
set_options(result.options);

chrome.webRequest.onCompleted.addListener(function (details) {
chrome.storage.local.get(["checked"], function (result) {
chrome.storage.local.get(["checked", "withExposedGit"], function (result) {
let url = new URL(details["url"])["origin"];
// replace ws and wss with http and https
url = url.replace(WS_SEARCH, WS_REPLACE);
Expand Down Expand Up @@ -586,6 +586,7 @@ chrome.storage.local.get(["checked", "withExposedGit", "options"], function (res
if (save) {
result.checked.push(url);
chrome.storage.local.set(result);
console.log(result);
}
}
});
Expand Down
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": "DotGit",
"version": "4.2.1",
"version": "4.2.2",
"description": "An extension for checking if .git is exposed in visited websites",
"icons": {
"16": "icons/dotgit-16.png",
Expand Down

0 comments on commit 2e3e2f2

Please sign in to comment.