MCPcopy Create free account
hub / github.com/ampproject/amphtml / isSecure

Function isSecure

third_party/subscriptions-project/swg.js:5437–5440  ·  view source on GitHub ↗

* True for HTTPS URLs * @param {LocationDef=} parsedUrl Defaults to the current page's URL * @return {boolean}

(parsedUrl)

Source from the content-addressed store, hash-verified

5435 * @return {boolean}
5436 */
5437function isSecure(parsedUrl) {
5438 parsedUrl = parsedUrl || PARSED_URL;
5439 return parsedUrl.protocol === 'https' || parsedUrl.protocol === 'https:';
5440}
5441
5442/**
5443 * Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected