Skip to content

Commit

Permalink
SwG release 0.1.22.30 (ampproject#18746)
Browse files Browse the repository at this point in the history
* SwG release 0.1.22.30

* replace module-based types with wildcard
  • Loading branch information
Dima Voytenko authored and Noran Azmy committed Oct 18, 2018
1 parent c5b0d63 commit e15393c
Show file tree
Hide file tree
Showing 2 changed files with 1,167 additions and 210 deletions.
9 changes: 4 additions & 5 deletions third_party/subscriptions-project/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** Version: 0.1.22.29 */
/** Version: 0.1.22.30 */
/**
* Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.
*
Expand Down Expand Up @@ -599,10 +599,9 @@ class MetaParser {
// Is locked?
const accessibleForFree = getMetaTag(this.doc_.getRootNode(),
'subscriptions-accessible-for-free');
let locked = false;
if (accessibleForFree && accessibleForFree.toLowerCase() == 'false') {
locked = true;
}
const locked = (accessibleForFree &&
accessibleForFree.toLowerCase() == 'false') || false;

return new PageConfig(productId, locked);
}
}
Expand Down

0 comments on commit e15393c

Please sign in to comment.