From 349bdfbc2d0129f6db6376bd92a6be08934424c3 Mon Sep 17 00:00:00 2001 From: Jozef Harag Date: Mon, 4 Nov 2024 10:58:41 +0100 Subject: [PATCH] fix: linting issues --- packages/web/src/index.ts | 2 +- packages/web/src/services/BrowserInstanceService.ts | 4 ++-- packages/web/src/utils/storage.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/web/src/index.ts b/packages/web/src/index.ts index d46abff1..1a2e7c71 100644 --- a/packages/web/src/index.ts +++ b/packages/web/src/index.ts @@ -438,7 +438,7 @@ export const SplunkRum: SplunkOtelWebType = { }; if(BrowserInstanceService.id) { - resourceAttrs['browser.instance.id'] = BrowserInstanceService.id + resourceAttrs['browser.instance.id'] = BrowserInstanceService.id; } const syntheticsRunId = getSyntheticsRunId(); diff --git a/packages/web/src/services/BrowserInstanceService.ts b/packages/web/src/services/BrowserInstanceService.ts index 97f50122..e8571e8b 100644 --- a/packages/web/src/services/BrowserInstanceService.ts +++ b/packages/web/src/services/BrowserInstanceService.ts @@ -50,8 +50,8 @@ export class BrowserInstanceService { this._id = browserInstanceId; safelySetSessionStorage(BROWSER_INSTANCE_ID_KEY, browserInstanceId); } else { - // Storage is not accessible. - this._id = undefined; + // Storage is not accessible. + this._id = undefined; } diff --git a/packages/web/src/utils/storage.ts b/packages/web/src/utils/storage.ts index f996ae0b..11abbde1 100644 --- a/packages/web/src/utils/storage.ts +++ b/packages/web/src/utils/storage.ts @@ -18,7 +18,7 @@ export const safelyGetSessionStorage = (key: string): string | null | undefined try { return window.sessionStorage.getItem(key); } catch { - return undefined + return undefined; // sessionStorage not accessible probably user is in incognito-mode // or set "Block third-party cookies" option in browser settings }