Amp-twitter不适用于Chrome

时间:2018-03-15 16:41:20

标签: html amp-html

我遇到Amp插件的问题,我用它来显示推文:

<amp-twitter width="390"
          height="330"
          layout="responsive"
          data-tweetid="855178606556856320">
      </amp-twitter>

我也包括这些:

<script async custom-element="amp-twitter" src="https://cdn.ampproject.org/v0/amp-twitter-0.1.js"></script>

<script async src="https://cdn.ampproject.org/v0.js"></script>

它在mozilla firefox上打开,但它在chrome上显示此错误:

**Error: Parent origin mismatch: null, file://​​​
    at ia.g.assert (log.js:318)
    at window.draw3p (integration.js:830)
    at frame.html:9
g.assert @ log.js:324
integration.js:552 Uncaught Error: Parent origin mismatch: null, file://​​​
    at ia.g.assert (log.js:318)
    at window.draw3p (integration.js:830)
    at frame.html:9**

0 个答案:

没有答案