forked from rDrama/rDrama
remove unnecessary xhr.withCredentials
parent
af4b262c7d
commit
07b534dee2
|
@ -5,7 +5,6 @@ if (!is_pwa) {
|
||||||
document.getElementsByClassName('tooltip')[0].addEventListener('click', function(e) {
|
document.getElementsByClassName('tooltip')[0].addEventListener('click', function(e) {
|
||||||
tt.hide()
|
tt.hide()
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.withCredentials=true;
|
|
||||||
xhr.open("POST", '/dismiss_mobile_tip', true);
|
xhr.open("POST", '/dismiss_mobile_tip', true);
|
||||||
xhr.setRequestHeader('xhr', 'xhr');
|
xhr.setRequestHeader('xhr', 'xhr');
|
||||||
xhr.send();
|
xhr.send();
|
||||||
|
|
|
@ -88,7 +88,6 @@ function autoSuggestTitle() {
|
||||||
if (isValidURL && urlField.value.length > 0 && titleField.value === "") {
|
if (isValidURL && urlField.value.length > 0 && titleField.value === "") {
|
||||||
|
|
||||||
const x = new XMLHttpRequest();
|
const x = new XMLHttpRequest();
|
||||||
x.withCredentials=true;
|
|
||||||
x.onreadystatechange = function() {
|
x.onreadystatechange = function() {
|
||||||
if (x.readyState == 4 && x.status == 200 && !titleField.value) {
|
if (x.readyState == 4 && x.status == 200 && !titleField.value) {
|
||||||
|
|
||||||
|
@ -157,7 +156,6 @@ function submit(form) {
|
||||||
submitButton.disabled = true;
|
submitButton.disabled = true;
|
||||||
|
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.withCredentials=true;
|
|
||||||
|
|
||||||
formData = new FormData(form);
|
formData = new FormData(form);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue