We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea5e67c commit ab5ef9aCopy full SHA for ab5ef9a
src/templates/home.html
@@ -60,7 +60,7 @@
60
else if (jqXHR.responseJSON) {
61
msg = jqXHR.responseJSON.replace(/\n/g, "<br/>").replace(/ /g, " ");
62
}
63
- else if (jqXHR.responseText.indexOf("<p>The CSRF token is invalid.</p>") != -1) {
+ else if (jqXHR.responseText && jqXHR.responseText.indexOf("<p>The CSRF token is invalid.</p>") != -1) {
64
msg = "The CSRF token is invalid. Please reload this page and retry.";
65
66
else if (jqXHR.responseText) {
0 commit comments