web-manager 3.1.6 → 3.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/account.js +3 -1
- package/lib/dom.js +6 -2
- package/package.json +2 -2
package/lib/account.js
CHANGED
@@ -307,10 +307,12 @@ Account.prototype._resolveAccount = function (firebaseUser, account, options) {
|
|
307
307
|
|
308
308
|
// Resolve roles
|
309
309
|
account.roles = account.roles || {};
|
310
|
-
account.roles.betaTester = account.plan.id === defaultPlanId ? false : account.roles.betaTester === true || account.roles.betaTester === 'true';
|
310
|
+
// account.roles.betaTester = account.plan.id === defaultPlanId ? false : account.roles.betaTester === true || account.roles.betaTester === 'true';
|
311
|
+
account.roles.betaTester = account.roles.betaTester === true || account.roles.betaTester === 'true';
|
311
312
|
account.roles.developer = account.roles.developer === true || account.roles.developer === 'true';
|
312
313
|
account.roles.admin = account.roles.admin === true || account.roles.admin === 'true';
|
313
314
|
account.roles.vip = account.roles.vip === true || account.roles.vip === 'true';
|
315
|
+
account.roles.og = account.roles.og === true || account.roles.og === 'true';
|
314
316
|
account.roles.promoExempt = account.roles.promoExempt === true || account.roles.promoExempt === 'true';
|
315
317
|
|
316
318
|
// Resolve affiliate
|
package/lib/dom.js
CHANGED
@@ -252,8 +252,12 @@ Dom.prototype.exists = function() {
|
|
252
252
|
Dom.loadScript = function(options, callback) {
|
253
253
|
return new Promise(function(resolve, reject) {
|
254
254
|
options = options || {};
|
255
|
-
options.async =
|
256
|
-
options.crossorigin =
|
255
|
+
options.async = typeof options.async === 'undefined' ? false : options.async;
|
256
|
+
options.crossorigin = typeof options.crossorigin === 'undefined' ? false : options.crossorigin;
|
257
|
+
options.src = new URL(options.src);
|
258
|
+
options.src.searchParams.set('cb', new Date().getTime());
|
259
|
+
options.src = options.src.toString();
|
260
|
+
|
257
261
|
var s = document.createElement('script');
|
258
262
|
s.src = options.src;
|
259
263
|
s.async = options.async;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "web-manager",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.8",
|
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": {
|
@@ -28,4 +28,4 @@
|
|
28
28
|
"firebase": "^8.10.1",
|
29
29
|
"lazysizes": "^5.3.2"
|
30
30
|
}
|
31
|
-
}
|
31
|
+
}
|