start refactor

This commit is contained in:
Alan Hamlett
2024-08-27 13:45:10 +02:00
parent 6d77323cb8
commit d5e94de63c
15 changed files with 498 additions and 443 deletions

16
src/utils/logging.ts Normal file
View File

@@ -0,0 +1,16 @@
import browser from 'webextension-polyfill';
import config from '../config/config';
/**
* Returns a promise with logging type variable.
*
* @returns {*}
* @private
*/
export const getLoggingType = async (): Promise<string> => {
const items = await browser.storage.sync.get({
loggingType: config.loggingType,
});
return items.loggingType;
};