web-manager 3.2.10 → 3.2.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,29 +21,4 @@ function AuthPages() {
21
21
  })
22
22
  }
23
23
 
24
- // function AuthPages() {
25
- // var self = this;
26
- // dom = window.Manager.dom();
27
- // var authRegex = /\/(signin|signup|forgot)/;
28
- // var pageQueryString = window.Manager.properties.page.queryString;
29
- // var pageAuthRedirect = pageQueryString.get('auth_redirect')
30
- //
31
- // if (pageAuthRedirect) {
32
- // dom.select('a').each(function (el) {
33
- // var href = el.getAttribute('href');
34
- // if (href && href.match(authRegex)) {
35
- // try {
36
- // var newURL = new URL(href);
37
- // if (newURL.pathname.match(authRegex)) {
38
- // newURL.searchParams.set('auth_redirect', pageAuthRedirect)
39
- // el.setAttribute('href', newURL.toString())
40
- // }
41
- // } catch (e) {
42
- // // console.warn('Failed to set auth URL', e);
43
- // }
44
- // }
45
- // })
46
- // }
47
- // }
48
-
49
24
  module.exports = AuthPages;
package/index.js CHANGED
@@ -580,7 +580,7 @@ function Manager() {
580
580
  return window.location.href = redirect;
581
581
  }
582
582
 
583
- if (pagePathname.match(/\/(signin|signup|forgot)\//)) {
583
+ if (pagePathname.match(/\/(authentication-required|authentication-success|authentication-token|forgot|oauth2|signin|signout|signup)/)) {
584
584
  import('./helpers/auth-pages.js')
585
585
  .then(function(mod) {
586
586
  mod.default()
package/lib/utilities.js CHANGED
@@ -103,7 +103,8 @@ Utilities.getContext = function () {
103
103
  return typeof m === 'undefined' ? _THROW : m === true;
104
104
  } catch (e) {
105
105
  try {
106
- return window.matchMedia('only screen and (max-width: 760px)').matches
106
+ // return window.matchMedia('only screen and (max-width: 767px)').matches;
107
+ return window.matchMedia('(max-width: 767px)').matches;
107
108
  } catch (e) {
108
109
  return false;
109
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.10",
3
+ "version": "3.2.13",
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": {