#1458 AutoSubmit - default domain list in separate file

This commit is contained in:
Grzegorz Zając 2023-12-12 10:32:03 +01:00
parent 686ec1c008
commit f52545d361
2 changed files with 24 additions and 1 deletions

View File

@ -23,6 +23,7 @@ const { clearLocalStorage, loadFromLocalStorage, saveToLocalStorage } = require(
const SDK = require('../../sdk');
const Crypt = require('./Crypt');
const storeLog = require('../../partials/storeLog');
const defaultAutoSubmitExcludedDomains = require('../../defaultAutoSubmitExcludedDomains');
const generateDefaultStorage = browserInfo => {
const crypt = new Crypt();
@ -58,7 +59,7 @@ const generateDefaultStorage = browserInfo => {
nativePush: (process.env.EXT_PLATFORM !== 'Safari'),
pinInfo: false,
extensionVersion: config.ExtensionVersion,
autoSubmitExcludedDomains: [],
autoSubmitExcludedDomains: defaultAutoSubmitExcludedDomains,
attempt: attempt + 1
});
})

View File

@ -0,0 +1,22 @@
//
// This file is part of the 2FAS Browser Extension (https://github.com/twofas/2fas-browser-extension)
// Copyright © 2023 Two Factor Authentication Service, Inc.
// Contributed by Grzegorz Zając. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>
//
const defaultAutoSubmitExcludedDomains = [];
module.exports = defaultAutoSubmitExcludedDomains;