mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
Minor 1.1 (#3)
- Added "Prompt for password length every time before generating" option - Added "Hide successful password generation message" option
This commit is contained in:
+7
-3
@@ -13,7 +13,9 @@ chrome.storage.sync.get(
|
||||
|
||||
// Extension settings
|
||||
showButton: true,
|
||||
showContext: true
|
||||
showContext: true,
|
||||
hideAlert: false,
|
||||
promptForLength: false
|
||||
},
|
||||
(settings) =>
|
||||
{
|
||||
@@ -32,7 +34,9 @@ chrome.storage.sync.get(
|
||||
"excludeSpecial",
|
||||
|
||||
"showButton",
|
||||
"showContext"
|
||||
"showContext",
|
||||
"hideAlert",
|
||||
"promptForLength"
|
||||
].forEach(i => document.querySelector("#" + i).checked = settings[i]);
|
||||
|
||||
SetupEventHandlers();
|
||||
@@ -46,7 +50,7 @@ function SetupEventHandlers()
|
||||
i.addEventListener("input",
|
||||
() => chrome.storage.sync.set(JSON.parse("{ \"" + i.id + "\": " + (i.type == "checkbox" ? i.checked : i.value) + " }"))));
|
||||
|
||||
document.querySelector("#generate").addEventListener("click", () => GeneratePassword(null));
|
||||
document.querySelector("#generate").addEventListener("click", () => GeneratePassword(null, true));
|
||||
document.querySelector("#more").addEventListener("click", (s) =>
|
||||
{
|
||||
let group = document.querySelector("#about");
|
||||
|
||||
Reference in New Issue
Block a user