Skip to content

Commit

Permalink
Remove use of spread operator (for React Native Android)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopding committed Dec 20, 2018
1 parent a2d46c4 commit e95c52f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import base64DeflatedTrie from './trie.json';

// Trie is serialized as a Buffer in node, but here
// we may be running in a browser so we make an Uint8Array
const data = JSON.parse(String.fromCharCode(...pako.inflate(base64.decode(base64DeflatedData))));
const data = JSON.parse(
String.fromCharCode.apply(
String, pako.inflate(base64.decode(base64DeflatedData))
),
);
const trieData = pako.inflate(base64.decode(base64DeflatedTrie));

const trie = new UnicodeTrie(trieData);
Expand Down

0 comments on commit e95c52f

Please sign in to comment.