bookwyrm/bookwyrm/static/js/guided_tour.js

19 lines
391 B
JavaScript
Raw Normal View History

/**
* Set guided tour user value to False
* @param {csrf_token} string
* @return {undefined}
*/
2022-07-03 07:24:33 +00:00
/* eslint-disable no-unused-vars */
function disableGuidedTour(csrf_token) {
2022-07-03 07:24:33 +00:00
"use strict";
2022-07-03 06:24:34 +00:00
fetch("/guided-tour/False", {
headers: {
2022-07-03 06:24:34 +00:00
"X-CSRFToken": csrf_token,
},
2022-07-03 06:24:34 +00:00
method: "POST",
redirect: "follow",
mode: "same-origin",
});
}