web-manager 3.2.26 → 3.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/account.js +6 -4
  2. package/package.json +1 -1
package/lib/account.js CHANGED
@@ -106,6 +106,8 @@ Account.prototype.resolve = function (account, options) {
106
106
  options = options || {};
107
107
  options.fetchNewAccount = typeof options.fetchNewAccount === 'undefined' ? true : options.fetchNewAccount;
108
108
 
109
+ console.log('account.resolve():', currentUser, options);
110
+
109
111
  // If there is no user logged in or we choose not to fetch the account, resolve a default account
110
112
  if (!currentUser || !currentUser.uid || !options.fetchNewAccount) {
111
113
  return resolve(
@@ -150,13 +152,13 @@ function handlePlanVisibility(planId) {
150
152
  var elements = document.querySelectorAll('[data-plan-id][data-plan-visibility]');
151
153
 
152
154
  // Log
153
- console.log('handlePlanVisibility(): planId', planId);
154
- console.log('handlePlanVisibility(): elements', elements);
155
+ console.log('account.handlePlanVisibility(): planId', planId);
156
+ console.log('account.handlePlanVisibility(): elements', elements);
155
157
 
156
158
  // Initially hide all elements
157
159
  elements.forEach(function($el) {
158
160
  $el.setAttribute('hidden', true);
159
- console.log('handlePlanVisibility(): hiding', $el);
161
+ console.log('account.handlePlanVisibility(): hiding', $el);
160
162
  });
161
163
 
162
164
  // Toggle visibility based on plan
@@ -177,7 +179,7 @@ function handlePlanVisibility(planId) {
177
179
  ? visibility === 'hidden'
178
180
  : visibility === 'visible';
179
181
 
180
- console.log('handlePlanVisibility(): setting', shouldHide, $el);
182
+ console.log('account.handlePlanVisibility(): setting', shouldHide, $el);
181
183
 
182
184
  if (shouldHide) {
183
185
  $el.setAttribute('hidden', true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.26",
3
+ "version": "3.2.27",
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": {