mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-31 22:58:18 +00:00
19 lines
391 B
JavaScript
19 lines
391 B
JavaScript
/**
|
|
* Set guided tour user value to False
|
|
* @param {csrf_token} string
|
|
* @return {undefined}
|
|
*/
|
|
|
|
/* eslint-disable no-unused-vars */
|
|
function disableGuidedTour(csrf_token) {
|
|
"use strict";
|
|
fetch("/guided-tour/False", {
|
|
headers: {
|
|
"X-CSRFToken": csrf_token,
|
|
},
|
|
method: "POST",
|
|
redirect: "follow",
|
|
mode: "same-origin",
|
|
});
|
|
}
|