frontend, etc.
This commit is contained in:
8
static/landing_script.js
Normal file
8
static/landing_script.js
Normal file
@@ -0,0 +1,8 @@
|
||||
$(document).ready(function () {
|
||||
var s_id = localStorage.getItem('session_id')
|
||||
if (s_id === null) {
|
||||
s_id = window.crypto.randomUUID();
|
||||
localStorage.setItem('session_id', s_id)
|
||||
}
|
||||
$('.vote-from-existing').attr('href', '?session_id=' + s_id);
|
||||
});
|
||||
Reference in New Issue
Block a user