fix puzzle visibility change callback

pull/2850/head
Thibault Duplessis 2017-03-26 16:12:44 +02:00
parent a4892ad589
commit b8b9e9a90b
1 changed files with 1 additions and 1 deletions

View File

@ -444,7 +444,7 @@ module.exports = function(opts, i18n) {
// Make sure chessground is fully shown when the page goes back to being visible.
document.addEventListener('visibilitychange', function() {
lichess.requestIdleCallback(function() {
jump(initialPath);
jump(vm.path);
});
});