Skip to content

Commit

Permalink
clean up, removed unncessary assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpubnub committed Dec 5, 2023
1 parent 279ce8b commit eec32ef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions lib/react_native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ var react_native_1 = require("../networking/modules/react_native");
var react_native_2 = __importDefault(require("../file/modules/react-native"));
var webCryptoModule_1 = require("../crypto/modules/WebCryptoModule/webCryptoModule");
global.Buffer = global.Buffer || buffer_1.Buffer;
Object.assign(global, {
TextEncoder: text_encoding_utf_8_1.TextEncoder,
TextDecoder: text_encoding_utf_8_1.TextDecoder,
});
global.TextEncoder = text_encoding_utf_8_1.TextEncoder;
global.TextDecoder = text_encoding_utf_8_1.TextDecoder;
var default_1 = /** @class */ (function (_super) {
Expand Down
6 changes: 0 additions & 6 deletions src/react_native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ import { stringifyBufferKeys } from '../web';
import { CryptoModule, LegacyCryptor, AesCbcCryptor } from '../crypto/modules/WebCryptoModule/webCryptoModule';

global.Buffer = global.Buffer || Buffer;


Object.assign(global, {
TextEncoder: TextEncoder,
TextDecoder: TextDecoder,
});
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;

Expand Down

0 comments on commit eec32ef

Please sign in to comment.