mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix failing click-track tests.
This commit is contained in:
@@ -93,7 +93,7 @@ export default {
|
||||
|
||||
let trackPromise = Ember.RSVP.resolve();
|
||||
if (tracking) {
|
||||
if (navigator.sendBeacon) {
|
||||
if (!Ember.testing && navigator.sendBeacon) {
|
||||
const data = new FormData();
|
||||
data.append("url", href);
|
||||
data.append("post_id", postId);
|
||||
|
||||
Reference in New Issue
Block a user