Browse Source

small fix for tracker generation

tags/v0.3.2.13
Big Bad Waffle 4 years ago
parent
commit
74602ad0f5
2 changed files with 7 additions and 1 deletions
  1. +5
    -1
      src/server/components/auth.js
  2. +2
    -0
      src/server/world/instancer.js

+ 5
- 1
src/server/components/auth.js View File

@@ -286,7 +286,7 @@ module.exports = {
this.username = msg.data.username;
cons.logOut(this.obj);

this.gaTracker = ga.connect(this.username);
this.initTracker();

await this.getSkins();

@@ -301,6 +301,10 @@ module.exports = {
msg.callback();
},

initTracker: function () {
this.gaTracker = ga.connect(this.username);
},

register: async function (msg) {
let credentials = msg.data;



+ 2
- 0
src/server/world/instancer.js View File

@@ -112,6 +112,8 @@ module.exports = {
else {
let o = objects.transferObject(obj);
questBuilder.obtain(o);

o.auth.initTracker();
}
},



Loading…
Cancel
Save