Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
merge
Commit Description:
merge
var base64 = require ( 'base64-js' );
var fs = require ( 'fs' );
/**
* The normal dictionary-data.js is quite large, which makes it
* unsuitable for browser usage. In order to make it smaller,
* we read dictionary.bin, which is a compressed version of
* the dictionary, and on initial load, Brotli decompresses
* it's own dictionary. 😜
*/
exports . init = function () {
var BrotliDecompressBuffer = require ( './decode' ). BrotliDecompressBuffer ;
var compressed = base64 . toByteArray ( require ( './dictionary.bin.js' ));
return BrotliDecompressBuffer ( compressed );
};
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings