mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Configure Long before requiring compiled protobuf
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as protobuf from 'protobufjs/minimal';
|
||||
import Long from 'long';
|
||||
import './wrap';
|
||||
|
||||
import { signalservice as SignalService } from './compiled';
|
||||
|
||||
protobuf.util.Long = Long;
|
||||
protobuf.configure();
|
||||
|
||||
export { SignalService };
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as protobuf from 'protobufjs/minimal';
|
||||
import Long from 'long';
|
||||
|
||||
protobuf.util.Long = Long;
|
||||
protobuf.configure();
|
||||
|
||||
export default protobuf;
|
||||
Reference in New Issue
Block a user