Skip to content

Commit dac62fc

Browse files
committed
fix: avoid use of node api
Signed-off-by: Adam Setch <[email protected]>
1 parent 6c430ef commit dac62fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/renderer/utils/helpers.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ export function isEnterpriseServerHost(hostname: Hostname): boolean {
2727
export function generateNotificationReferrerId(
2828
notification: Notification,
2929
): string {
30-
const buffer = Buffer.from(
31-
`018:NotificationThread${notification.id}:${notification.account.user.id}`,
32-
);
33-
return buffer.toString('base64');
30+
const raw = `018:NotificationThread${notification.id}:${notification.account.user.id}`;
31+
return btoa(raw);
3432
}
3533

3634
export function getCheckSuiteUrl(notification: Notification): Link {

0 commit comments

Comments
 (0)