Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Joozty committed Nov 4, 2024
1 parent 861bed8 commit 349bdfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/web/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/services/BrowserInstanceService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/utils/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 349bdfb

Please sign in to comment.