kopia lustrzana https://github.com/c9/core
Reduces the uid checks - less warnings
rodzic
585f309b0c
commit
e6cef5fe3b
|
@ -12,7 +12,11 @@ define(function(require, exports, module) {
|
|||
|
||||
function skipAnalytics(user) {
|
||||
if (!user) return true;
|
||||
if (user.id === -1 || user.uid === -1) return true;
|
||||
if (user.id === -1) return true;
|
||||
|
||||
if(!user.id){
|
||||
if (user.uid === -1) return true;
|
||||
}
|
||||
|
||||
if (hasInternalTestName(user)) return true;
|
||||
if (hasInternalDomain(user.email)) return true;
|
||||
|
|
Ładowanie…
Reference in New Issue