pad: Initialize pad cookie before starting the handshake

pull/5252/head
Richard Hansen 2021-10-28 16:09:31 -04:00
parent f6c5ce606e
commit 9fb754ce3a
1 changed files with 1 additions and 6 deletions

View File

@ -397,13 +397,8 @@ const pad = {
if (window.customStart != null) window.customStart();
$('#colorpicker').farbtastic({callback: '#mycolorpickerpreview', width: 220});
$('#readonlyinput').on('click', () => { padeditbar.setEmbedLinks(); });
handshake();
// To use etherpad you have to allow cookies.
// This will check if the prefs-cookie is set.
// Otherwise it shows up a message to the user.
padcookie.init();
handshake();
});
},
_afterHandshake() {