Needle Engine

Changes between version 3.6.6 and 3.6.7
Files changed (1) hide show
  1. src/engine/engine_license.ts +3 -3
src/engine/engine_license.ts CHANGED
@@ -286,7 +286,7 @@
286
286
 
287
287
  async function sendUsageMessageToAnalyticsBackend() {
288
288
  try {
289
- const analyticsBackendUrlForward = "https://urls.needle.tools/analytics-endpoint";
289
+ const analyticsBackendUrlForward = "https://urls.needle.tools/analytics-endpoint-v2";
290
290
  const res = await fetch(analyticsBackendUrlForward);
291
291
  let analyticsUrl = await res.text();
292
292
  if (analyticsUrl) {
@@ -296,10 +296,10 @@
296
296
 
297
297
  const currentUrl = window.location.href;
298
298
 
299
- let endpoint = "api/v1/register/web-request";
299
+ let endpoint = "api/v2/new/request";
300
300
  if (!analyticsUrl.endsWith("/")) endpoint = "/" + endpoint;
301
301
  const license = NEEDLE_ENGINE_LICENSE_TYPE;
302
- const finalUrl = `${analyticsUrl}${endpoint}?license=${license}&url=${encodeURIComponent(currentUrl)}&hostname=${encodeURIComponent(window.location.hostname)}&pathname=${encodeURIComponent(window.location.pathname)}&search=${encodeURIComponent(window.location.search)}&hash=${encodeURIComponent(window.location.hash)}&version=${VERSION}}&generator=${GENERATOR}`;
302
+ const finalUrl = `${analyticsUrl}${endpoint}?license=${license}&url=${encodeURIComponent(currentUrl)}&hostname=${encodeURIComponent(window.location.hostname)}&pathname=${encodeURIComponent(window.location.pathname)}&search=${encodeURIComponent(window.location.search)}&hash=${encodeURIComponent(window.location.hash)}&version=${VERSION}&generator=${GENERATOR}`;
303
303
  if (debug) console.log("Sending non-commercial usage message to analytics backend", finalUrl);