remove/update deep links
This commit is contained in:
parent
32cb177abe
commit
25110d4149
|
@ -9,7 +9,6 @@
|
|||
var data = @Html(J.stringify(JsData(sit, fen, animationDuration)));
|
||||
data.positions = @positionsJson;
|
||||
LichessEditor(document.getElementById('board_editor'), data);
|
||||
lichess.openInMobileApp('editor');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ lichess = lichess || {};
|
|||
lichess.startChallenge = function(element, opts) {
|
||||
var challenge = opts.data.challenge;
|
||||
var accepting;
|
||||
if (!opts.owner && lichess.openInMobileApp(challenge.id)) return;
|
||||
if (!opts.owner) lichess.openInMobileApp('/challenge/' + challenge.id);
|
||||
lichess.socket = new lichess.StrongSocket(
|
||||
opts.socketUrl,
|
||||
opts.data.socketVersion, {
|
||||
|
|
|
@ -938,7 +938,7 @@ lichess.notifyApp = (function() {
|
|||
|
||||
lichess.startRound = function(element, cfg) {
|
||||
var data = cfg.data;
|
||||
lichess.openInMobileApp(data.game.id + (data.player.id || ''));
|
||||
lichess.openInMobileApp(data.game.id);
|
||||
var round, chat;
|
||||
if (data.tournament) $('body').data('tournament-id', data.tournament.id);
|
||||
lichess.socket = lichess.StrongSocket(
|
||||
|
@ -1768,7 +1768,7 @@ lichess.notifyApp = (function() {
|
|||
|
||||
function startAnalyse(element, cfg) {
|
||||
var data = cfg.data;
|
||||
lichess.openInMobileApp(data.game.id);
|
||||
lichess.openInMobileApp('/analyse/' + data.game.id);
|
||||
var $watchers = $('#site_header div.watchers').watchers();
|
||||
var analyse, $panels;
|
||||
lichess.socket = lichess.StrongSocket(
|
||||
|
@ -1928,7 +1928,6 @@ lichess.notifyApp = (function() {
|
|||
////////////////
|
||||
|
||||
function startUserAnalysis(element, cfg) {
|
||||
lichess.openInMobileApp('analysis');
|
||||
var analyse;
|
||||
cfg.initialPly = 'url';
|
||||
cfg.element = element.querySelector('.analyse');
|
||||
|
|
|
@ -131,8 +131,4 @@ $(function() {
|
|||
}]
|
||||
});
|
||||
});
|
||||
|
||||
$('div.user_show.all').each(function() {
|
||||
lichess.openInMobileApp('/@/' + $(this).data('username'));
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue