【问题标题】:Inspect popup for chrome extension immediately closes检查 chrome 扩展的弹出窗口立即关闭
【发布时间】:2014-08-20 11:47:30
【问题描述】:

我正在尝试调试 chrome 扩展,但 debugging tutorial 对我不起作用。当我单击inspect popup 时,调试窗口打开,然后立即自行关闭。

我也尝试打开扩展程序的窗口,右键单击它,然后选择“检查元素”,但结果相同。

这是 HTML 文件。我删除了 javascript 文件,只是为了确保这不会导致问题。

<!doctype html>
<html>
  <head>
    <title>Getting Started Extension's Popup</title>
    <style>
      body {
        min-width: 357px;
        overflow-x: hidden;
      }

      img {
        margin: 5px;
        border: 2px solid black;
        vertical-align: middle;
        width: 75px;
        height: 75px;
      }
    </style>

    <!--
      - JavaScript and HTML must be in separate files: see our Content Security
      - Policy documentation[1] for details and explanation.
      -
      - [1]: http://developer.chrome.com/extensions/contentSecurityPolicy.html

     <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="popup.js"></script>-->
  </head>
  <body>
    <img id="kitty-pic" src="http://www.tehcute.com/pics/201109/kitten-bouquet-big.jpg" />
    <img id="puppy-pic" src="https://c2.staticflickr.com/6/5347/7147821499_52ba051aaa_z.jpg" />
  </body>
</html>

【问题讨论】:

    标签: html google-chrome google-chrome-extension


    【解决方案1】:

    我需要关闭并重新打开 chrome 才能真正激活扩展开发模式。

    【讨论】:

    • 有趣。这听起来像一个错误。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-23
    • 2019-12-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多