We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cc6c94 commit 77b25d9Copy full SHA for 77b25d9
amp2html.js
@@ -4,10 +4,10 @@
4
* License-Filename: LICENSE
5
*/
6
7
-// tests for AMP first, and then Google hosted iframed AMP
+// tests for AMP first, and then Google hosted AMP
8
if (document.querySelector("html[amp],html[⚡]") ||
9
(document.location.pathname.split('/')[1] == "amp" &&
10
- document.querySelector("g-full-page-view")) ) {
+ document.location.hostname.split('.')[1] == "google") ) {
11
var amp = document.head.querySelector("link[rel='amphtml'][href]"),
12
canon = document.head.querySelector("link[rel='canonical'][href],link[rel='canonical']");
13
if (null != canon && canon.href != null &&
0 commit comments