freedom-social-xmpp
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -11,5 +11,16 @@ /*globals freedom:true,setTimeout,console,VCardStore,global */ | ||
// Global declarations for node.js | ||
if (typeof window === 'undefined') { | ||
global.window = {}; | ||
global.XMLHttpRequest = {}; | ||
if (typeof global !== 'undefined') { | ||
if (typeof window === 'undefined') { | ||
global.window = {}; | ||
} | ||
if (typeof XMLHttpRequest === 'undefined') { | ||
global.XMLHttpRequest = {}; | ||
} | ||
} else { | ||
if (typeof window === 'undefined') { | ||
window = {}; | ||
} | ||
if (typeof XMLHttpRequest === 'undefined') { | ||
XMLHttpRequest = {}; | ||
} | ||
} | ||
@@ -252,3 +263,4 @@ | ||
// Is it a staus response? | ||
} else if (msg.is('iq') && msg.attrs.type === 'result') { | ||
} else if (msg.is('iq') && (msg.attrs.type === 'result' || | ||
msg.attrs.type === 'set')) { | ||
this.updateRoster(msg); | ||
@@ -255,0 +267,0 @@ // Is it a status? |
{ | ||
"name": "freedom-social-xmpp", | ||
"description": "XMPP Social provider for freedomjs", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"homepage": "http://freedomjs.org", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -11,5 +11,16 @@ /*globals freedom:true,setTimeout,console,VCardStore,global */ | ||
// Global declarations for node.js | ||
if (typeof window === 'undefined') { | ||
global.window = {}; | ||
global.XMLHttpRequest = {}; | ||
if (typeof global !== 'undefined') { | ||
if (typeof window === 'undefined') { | ||
global.window = {}; | ||
} | ||
if (typeof XMLHttpRequest === 'undefined') { | ||
global.XMLHttpRequest = {}; | ||
} | ||
} else { | ||
if (typeof window === 'undefined') { | ||
window = {}; | ||
} | ||
if (typeof XMLHttpRequest === 'undefined') { | ||
XMLHttpRequest = {}; | ||
} | ||
} | ||
@@ -252,3 +263,4 @@ | ||
// Is it a staus response? | ||
} else if (msg.is('iq') && msg.attrs.type === 'result') { | ||
} else if (msg.is('iq') && (msg.attrs.type === 'result' || | ||
msg.attrs.type === 'set')) { | ||
this.updateRoster(msg); | ||
@@ -255,0 +267,0 @@ // Is it a status? |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
936267
48
26846
15
18