isbase
1D
V2EX  ›  问与答

chrome 扩展加载出错但是完全看不出问题在哪里

  •  
  •   isbase ·
    PRO
    · Jun 24, 2016 · 1577 views
    This topic created in 3680 days ago, the information mentioned may be changed or developed.




    关键它不告诉哪里出错了,没有任何线索提供,实在检查不出哪里有问题
    4 replies    2016-06-24 21:34:32 +08:00
    Biwood
        1
    Biwood  
       Jun 24, 2016 via Android
    manifest 版本都没指定,为什么不安装官方教程来写呢
    isbase
        2
    isbase  
    OP
    PRO
       Jun 24, 2016
    @Biwood {
    "name": "hello",
    "version": "2.1",
    "manifest_version": 2,
    "description": "Gets information from Google.",
    "content_scripts": [
    {
    "matches": ["http://*.zimuzu.tv/*"],
    "js": ["copyLink.js"]
    }
    ]
    }


    这样还是相同的错误😓
    gangsta
        3
    gangsta  
       Jun 24, 2016
    manifest 文件名前面多了一个空格
    isbase
        4
    isbase  
    OP
    PRO
       Jun 24, 2016
    @gangsta
    @Biwood

    最后发现是 manifest 文件的权限问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5318 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 01:15 · PVG 09:15 · LAX 18:15 · JFK 21:15
    ♥ Do have faith in what you're doing.