Safari sometimes fires the StorageEvent in the same document as well.
Move lichess.StrongSocket.sri to lichess.sri and use the unique id to
filter events.
Tracks moves that were played on the board,
sent to the server, possibly acked,
but without a move response from the server yet.
After a delay, it will trigger a reload.
This might fix bugs where the board is in a
transient, dirty state, where clocks don't tick,
eventually causing the player to flag.
It will also help with lila-ws restarts.
* 'master' of github.com:ornicar/lila:
use study chapter number as sort handle on mobile (closes#5631)
eliminate lichess.mousedownEvent (closes#5167)
let bindMobileMousedown support mixed mouse/touch (#5167)
make held button repeater generic over mouse/touch (#5167)
let resize handle support mixed mouse/touch devices (#5167)
touch devices can still have a mouse (#5167)
touch devices can still have keyboard (fixes#5616)
remove cpl cap in insights (fixes#5617)
remove ie workaround (already commented out)
save yarn cache in github action
minor tweak to faq wording
update stockfish.wasm (v0.5.12)
make /api csp safari compatible (fixes#5622)
no longer using kappa
consider trailing dashes to be part of url
i18n: center -> centre in british source
mention PeerJS in COPYING.md
If a player uses crazyhouse keyboard controls at
least occasionally, preload the svg icons at
start of game so there's no lag when keys are
first pressed.
Move requestAnimationFrame inside of throttle.
Before this change, if a call to ctrl.autoScroll was throttled,
the actual callback would not be inside a requestAnimationFrame,
but rather from a throttle setTimeout.
Before the chessground es6 commit, which breaks the lila build:
[00:39:40] Using gulpfile ~/build/ornicar/lila/ui/editor/gulpfile.js
[00:39:40] Starting 'prod'...
[00:39:41] 'prod' errored after 1.23 s
[00:39:41] Error:
/home/travis/build/ornicar/lila/node_modules/chessground/chessground.js:1
import { start } from './api';
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'
at formatError (/home/travis/build/ornicar/lila/node_modules/gulp-cli/lib/versioned/^4.0.0/format-error.js:21:10)
at Gulp.<anonymous> (/home/travis/build/ornicar/lila/node_modules/gulp-cli/lib/versioned/^4.0.0/log/events.js:33:15)
at Gulp.emit (events.js:203:15)
at Gulp.EventEmitter.emit (domain.js:448:20)
at Object.error (/home/travis/build/ornicar/lila/node_modules/undertaker/lib/helpers/createExtensions.js:61:10)
at handler (/home/travis/build/ornicar/lila/node_modules/now-and-later/lib/map.js:50:14)
at f (/home/travis/build/ornicar/lila/node_modules/once/once.js:25:25)
at f (/home/travis/build/ornicar/lila/node_modules/once/once.js:25:25)
at tryCatch (/home/travis/build/ornicar/lila/node_modules/async-done/index.js:24:15)
at done (/home/travis/build/ornicar/lila/node_modules/async-done/index.js:40:12)
parallel: This job failed:
build editor