mirror of
https://github.com/twofas/2fas-browser-extension.git
synced 2024-11-22 02:00:08 +01:00
#1458 clickSubmit - Safari FIX
This commit is contained in:
parent
3cd732e4b0
commit
ac17e02f66
@ -34,11 +34,11 @@ const clickSubmit = (inputElement, siteURL) => {
|
||||
return delay(() => {}, 500)
|
||||
.then(() => loadFromLocalStorage(['autoSubmitExcludedDomains']))
|
||||
.then(storage => {
|
||||
const domains = storage.autoSubmitExcludedDomains;
|
||||
const domains = storage.autoSubmitExcludedDomains || [];
|
||||
const url = new URL(siteURL);
|
||||
const hostname = url.hostname.replace(/^(www\.)?/, '').replace(/\/$/, '');
|
||||
|
||||
if (domains.includes(hostname)) {
|
||||
if (domains && domains?.includes(hostname)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user