mirror of
https://github.com/twofas/2fas-browser-extension.git
synced 2024-11-22 02:00:08 +01:00
#1458 storeLog version improvement
This commit is contained in:
parent
fbfe4864da
commit
6a905eb631
@ -18,6 +18,7 @@
|
||||
//
|
||||
|
||||
const { loadFromLocalStorage, saveToLocalStorage } = require('../localStorage');
|
||||
const config = require('../config');
|
||||
const SDK = require('../sdk');
|
||||
|
||||
const logURL = url => {
|
||||
@ -70,7 +71,7 @@ const storeLog = async (level, logID = 0, errObj, url = '') => {
|
||||
}
|
||||
|
||||
try {
|
||||
storage = await loadFromLocalStorage(['logging', 'extensionID', 'extensionVersion', 'browserInfo']);
|
||||
storage = await loadFromLocalStorage(['logging', 'extensionID', 'browserInfo']);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
@ -98,7 +99,7 @@ const storeLog = async (level, logID = 0, errObj, url = '') => {
|
||||
}
|
||||
|
||||
c.errorType = errObj?.constructor?.name || '';
|
||||
c.extensionVersion = storage.extensionVersion;
|
||||
c.extensionVersion = config.ExtensionVersion;
|
||||
c.browserInfo = storage.browserInfo;
|
||||
c.url = logURL(url);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user