mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-30 16:50:10 -04:00
only send track view on get requests
This commit is contained in:
parent
1ec46e3efd
commit
1d3f4f6935
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue