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) {
|
var performAjax = function(resolve, reject) {
|
||||||
|
|
||||||
if (_trackView) {
|
if (_trackView && (!args.type || args.type === "GET")) {
|
||||||
_trackView = false;
|
_trackView = false;
|
||||||
args.headers = { 'Discourse-Track-View': true };
|
args.headers = { 'Discourse-Track-View': true };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue