export SettingScope (define it above the exports)

This commit is contained in:
2022-11-06 01:06:28 -07:00
parent 73a405c008
commit c796967226

View File

@@ -8,19 +8,20 @@ const hash = require("hash.js");
const Authenticator = require("otplib").authenticator.Authenticator;
const BrowserpassURL = require("@browserpass/url");
const SettingScope = {
// query a setting first from the login, then the store, then globally
Login: "login",
// query a setting first from the store, then globally
Store: "store",
};
module.exports = {
prepareLogins,
filterSortLogins,
getSetting,
ignoreFiles,
makeTOTP,
};
const SettingScope = {
// query a setting first from the login, then the store, then globally
Login: "login",
// query a setting first from the store, then globally
Store: "store",
SettingScope,
};
//----------------------------------- Function definitions ----------------------------------//