remove dup

pull/3460/head
Thibault Duplessis 2017-08-16 17:34:22 -05:00
parent 7a1cbabe5f
commit e911a45f05
1 changed files with 4 additions and 3 deletions

View File

@ -28,10 +28,11 @@ export default function(opts: CevalOpts): CevalCtrl {
const hovering = prop<Hovering | null>(null);
const isDeeper = prop(false);
const sfPath = '/assets/vendor/stockfish/stockfish';
const pool = new Pool({
asmjs: window.lichess.assetUrl('/assets/vendor/stockfish/stockfish.js', {sameDomain: true}),
pnacl: pnaclSupported && window.lichess.assetUrl('/assets/vendor/stockfish/stockfish.nmf'),
wasm: wasmSupported && window.lichess.assetUrl('/assets/vendor/stockfish/stockfish.wasm.js', {sameDomain: true}),
asmjs: window.lichess.assetUrl(sfPath + '.js', {sameDomain: true}),
pnacl: pnaclSupported && window.lichess.assetUrl(sfPath + '.nmf'),
wasm: wasmSupported && window.lichess.assetUrl(sfPath + '.wasm.js', {sameDomain: true}),
onCrash: opts.onCrash
}, {
minDepth,