Update stockfish.js and use submodule

pull/2098/head
Niklas Fiekas 2016-07-17 14:47:12 +02:00
parent b8b03da6d7
commit 3079375711
4 changed files with 5 additions and 33 deletions

3
.gitmodules vendored
View File

@ -28,3 +28,6 @@
[submodule "public/vendor/shepherd"]
path = public/vendor/shepherd
url = https://github.com/HubSpot/shepherd
[submodule "public/vendor/stockfish.js"]
path = public/vendor/stockfish.js
url = https://github.com/niklasf/stockfish.js

1
public/vendor/stockfish.js vendored 160000

@ -0,0 +1 @@
Subproject commit e3670f6cf46aec942d444d8bb8c6599eb89982e3

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@ module.exports = function(possible, variant, emit) {
var enabled = m.prop(possible() && allowed() && lichess.storage.get(storageKey) === '1');
var started = false;
var pool = makePool({
path: '/assets/vendor/stockfish7.js', // Can't CDN because same-origin policy
path: '/assets/vendor/stockfish.js/stockfish.js', // Can't CDN because same-origin policy
minDepth: minDepth,
maxDepth: maxDepth,
variant: variant