mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Remove use of __dirname from main process
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { version } from './packageJson.node.js';
|
||||
import { packageJson } from './packageJson.node.js';
|
||||
import { getUserAgent } from './getUserAgent.node.js';
|
||||
|
||||
type AuthenticateOptionsType = Readonly<{
|
||||
@@ -36,6 +36,6 @@ export async function authenticate({
|
||||
|
||||
return new Headers({
|
||||
authorization: `${auth.tokenType} ${auth.accessToken}`,
|
||||
'user-agent': getUserAgent(version),
|
||||
'user-agent': getUserAgent(packageJson.version),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user