web-manager 3.1.2 → 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/lib/account.js +6 -2
  2. package/package.json +1 -1
package/lib/account.js CHANGED
@@ -256,7 +256,9 @@ Account.prototype._resolveAccount = function (currentUser, account, options) {
256
256
  });
257
257
  }
258
258
  } catch (e) {
259
- // console.error('Unable to check query strings', e);
259
+ if (typeof window !== 'undefined') {
260
+ console.error('Unable to check query strings', e);
261
+ }
260
262
  }
261
263
 
262
264
  var planExpireDate = new Date(account.plan.expires.timestamp);
@@ -416,7 +418,9 @@ Account.prototype._resolveAccount = function (currentUser, account, options) {
416
418
  })
417
419
 
418
420
  } catch (e) {
419
- // console.error('Unable to set DOM elements', e);
421
+ if (typeof window !== 'undefined') {
422
+ console.error('Unable to set DOM elements', e);
423
+ }
420
424
  }
421
425
 
422
426
  self.properties = account;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "index.js",
6
6
  "scripts": {