pageflow 13.4.0 → 13.5.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pageflow might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44c6592842c365d4b68b9fb2caa51bcf9f50d88048ac74c82a08b73a47588191
4
- data.tar.gz: e8aaa710e69700ebb0209ab15a13b181e758f7a9f5cbd94c8228b1d79c6a1564
3
+ metadata.gz: d65914a5c0e8255f5d2791a221435172ad9c71a413be337da5797ca121b3aa08
4
+ data.tar.gz: 97c08215f8fffd43e31a7e7f2d6df5cda9235a4806aae88e1def9fc56535fdf7
5
5
  SHA512:
6
- metadata.gz: aed07b3a52a4e41327b7e05aaba3bc0daaace19ddee4411ed67664d09e5151e59ffdbb562158aa229a4d1f111f1db6b6d8bd2ba883273d6eda88a6c9869cd550
7
- data.tar.gz: d2b12c825c29428e897c30d7822d418e922d354bfac3cf6e6c8a4c2283dc0f22af2bce7ea91b1590ff3cd3c23aeaf1c687f22bf9afed0ebf52206a356be3661d
6
+ metadata.gz: 3925ed6f51dca3e7143deeeb1f828038d1587cc1dd8215542f3f8aef0f1a4cb9950c55ff41488b56ffd86c41de92c9f6eb147e78ebd8d5e119f65bd995b2f7a7
7
+ data.tar.gz: 8039b72eed4a82ca24cf6c3789b5bcf0fbaa230c21b906a58d454a5deca8e8d15a2bc151ceb86d674c1980069fbf74269b009ef5b8bba0386571dc7c5bb9e950
data/CHANGELOG.md CHANGED
@@ -1,20 +1,18 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 13.4.0
3
+ ### Version 13.5.0
4
4
 
5
- 2019-02-26
5
+ 2019-03-05
6
6
 
7
- [Compare changes](https://github.com/codevise/pageflow/compare/13-3-stable...v13.4.0)
7
+ [Compare changes](https://github.com/codevise/pageflow/compare/13-4-stable...v13.5.0)
8
8
 
9
- - Prevent missing first pagepreloaded event in pageflow.ready
10
- ([#1128](https://github.com/codevise/pageflow/pull/1128))
11
- - Re-apply loop patch for Audio5js
12
- ([#1126](https://github.com/codevise/pageflow/pull/1126))
13
- - Fix scope filter translation for embedded_index_table
14
- ([#1125](https://github.com/codevise/pageflow/pull/1125))
15
- - Fix audio page mask image in Safari 12
16
- ([#1124](https://github.com/codevise/pageflow/pull/1124))
9
+ - Improve text area link dialog
10
+ ([#1130](https://github.com/codevise/pageflow/pull/1130))
11
+ - Allow setting browser feature flags via query string in debug mode
12
+ ([#1130](https://github.com/codevise/pageflow/pull/1130))
13
+ - Fix cracking noises in audios on Safari
14
+ ([#1127](https://github.com/codevise/pageflow/pull/1127))
17
15
 
18
16
  See
19
- [13-3-stable branch](https://github.com/codevise/pageflow/blob/13-3-stable/CHANGELOG.md)
17
+ [13-4-stable branch](https://github.com/codevise/pageflow/blob/13-4-stable/CHANGELOG.md)
20
18
  for previous changes.
@@ -8,6 +8,10 @@ pageflow.browser.Agent = function(userAgent) {
8
8
  return matches(/\bSilk\b/);
9
9
  },
10
10
 
11
+ matchesDesktopSafari: function() {
12
+ return this.matchesSafari() && !this.matchesMobilePlatform();
13
+ },
14
+
11
15
  matchesDesktopSafari9: function() {
12
16
  return this.matchesSafari9() && !this.matchesMobilePlatform();
13
17
  },
@@ -1,3 +1,7 @@
1
1
  pageflow.browser.feature('volume control support', function(has) {
2
2
  return has.not('ios platform');
3
- });
3
+ });
4
+
5
+ pageflow.browser.feature('audio context volume fading support', function() {
6
+ return !pageflow.browser.agent.matchesDesktopSafari();
7
+ });
@@ -81,10 +81,17 @@ pageflow.browser = (function(){
81
81
 
82
82
  var asyncHas = function(name) {
83
83
  var runTest = function() {
84
- if ((pageflow.debugMode() || pageflow.ALLOW_FEATURE_OVERRIDES) &&
85
- window.localStorage &&
86
- typeof window.localStorage['override ' + name] !== 'undefined') {
87
- var value = (window.localStorage['override ' + name] === 'on');
84
+ var value, underscoredName = name.replace(/ /g, '_');
85
+
86
+ if (pageflow.debugMode() && location.href.indexOf('&has=' + underscoredName) >= 0) {
87
+ value = location.href.indexOf('&has=' + underscoredName + '_on') >= 0;
88
+ pageflow.log('FEATURE OVERRIDDEN ' + name + ': ' + value, {force: true});
89
+ return value;
90
+ }
91
+ else if ((pageflow.debugMode() || pageflow.ALLOW_FEATURE_OVERRIDES) &&
92
+ window.localStorage &&
93
+ typeof window.localStorage['override ' + name] !== 'undefined') {
94
+ value = (window.localStorage['override ' + name] === 'on');
88
95
  pageflow.log('FEATURE OVERRIDDEN ' + name + ': ' + value, {force: true});
89
96
  return value;
90
97
  }
@@ -123,4 +130,4 @@ pageflow.browser = (function(){
123
130
  return this.ready();
124
131
  }
125
132
  };
126
- }());
133
+ }());