Files
browser-wakatime/src/utils/logging.ts
Alan Hamlett d5e94de63c start refactor
2024-08-27 13:45:10 +02:00

17 lines
358 B
TypeScript

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;
};