Revert "DEV: resets csrf ajax prefilter only if present (#7747)"

This reverts commit 6612218a4eee1496c4aefe6d5ff7b18157fd2881.
This commit is contained in:
Joffrey JAFFEUX
2019-06-11 13:34:25 +02:00
parent 61b587f66e
commit dc15486f0a
2 changed files with 4 additions and 19 deletions

View File

@ -16,7 +16,6 @@ import { resetDecorators } from "discourse/widgets/widget";
import { resetDecorators as resetPostCookedDecorators } from "discourse/widgets/post-cooked";
import { resetCache as resetOneboxCache } from "pretty-text/oneboxer";
import { resetCustomPostMessageCallbacks } from "discourse/controllers/topic";
import { resetCsrfCallbacks } from "discourse/initializers/csrf-token";
export function currentUser() {
return Discourse.User.create(
@ -129,7 +128,6 @@ export function acceptance(name, options) {
resetPostCookedDecorators();
resetOneboxCache();
resetCustomPostMessageCallbacks();
resetCsrfCallbacks();
Discourse.reset();
}
});