export SettingScope
(define it above the exports)
This commit is contained in:
@@ -8,19 +8,20 @@ const hash = require("hash.js");
|
|||||||
const Authenticator = require("otplib").authenticator.Authenticator;
|
const Authenticator = require("otplib").authenticator.Authenticator;
|
||||||
const BrowserpassURL = require("@browserpass/url");
|
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 = {
|
module.exports = {
|
||||||
prepareLogins,
|
prepareLogins,
|
||||||
filterSortLogins,
|
filterSortLogins,
|
||||||
getSetting,
|
getSetting,
|
||||||
ignoreFiles,
|
ignoreFiles,
|
||||||
makeTOTP,
|
makeTOTP,
|
||||||
};
|
SettingScope,
|
||||||
|
|
||||||
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",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------- Function definitions ----------------------------------//
|
//----------------------------------- Function definitions ----------------------------------//
|
||||||
|
Reference in New Issue
Block a user