Skip to content

Commit

Permalink
Forgot to set phishing parameters
Browse files Browse the repository at this point in the history
when user pastes a bookmark and then pastes a phishing URL into the warning dialog.
  • Loading branch information
alanhkarp committed Oct 25, 2023
1 parent eed96a7 commit 672642f
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/ssp.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ let SitePasswordWeb = ((function (self) {
} else {
$sitename.value = settings.sitename;
//alert("Bookmark is not for this domain. Try another one.");
phishingWarningMsg($domainname.value);
phishingWarningOn(settings);
}
} else {
Expand Down Expand Up @@ -742,20 +743,20 @@ let SitePasswordWeb = ((function (self) {
get("phishingtext0").innerText = sitename;
get("phishingtext1").innerText = $domainname.value;
get("phishingtext2").innerText = testDomain;
}
get("forgetbutton").onclick = function () {
let children = get("toforgetlist").children;
for (let child of children) {
forgetDomainname(child.innerText);
}
get("cancelbutton").click();
}
get("cancelbutton").onclick = function () {
while ( get("toforgetlist").firstChild ) {
get("toforgetlist").removeChild(get("toforgetlist").firstChild);
get("forgetbutton").onclick = function () {
let children = get("toforgetlist").children;
for (let child of children) {
forgetDomainname(child.innerText);
}
get("cancelbutton").click();
}
get("cancelbutton").onclick = function () {
while ( get("toforgetlist").firstChild ) {
get("toforgetlist").removeChild(get("toforgetlist").firstChild);
}
get("forget").classList.toggle("nodisplay");
}
get("forget").classList.toggle("nodisplay");
}

const $http = get("http");
function httpWarningOn() {
Expand Down

0 comments on commit 672642f

Please sign in to comment.