mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 08:24:28 +08:00
only send track view on get requests
This commit is contained in:
parent
1ec46e3efd
commit
1d3f4f6935
@ -49,7 +49,7 @@ Discourse.Ajax = Em.Mixin.create({
|
||||
|
||||
var performAjax = function(resolve, reject) {
|
||||
|
||||
if (_trackView) {
|
||||
if (_trackView && (!args.type || args.type === "GET")) {
|
||||
_trackView = false;
|
||||
args.headers = { 'Discourse-Track-View': true };
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user