0

제대로 한 크롬 확장을로드하고 난 popup.html 페이지확장의 popup.html 내가 만든 크롬

enter image description here처럼 찾고로드 할 때 아래 지금 내 manifiest.json 파일

{ 
    "update_url":"http://clients2.google.com/service/update2/crx", 
    "name": "Example", 
    "version": "1.0", 
    "manifest_version": 2, 
    "description": "Example Dictionary", 

     "browser_action": { 
     "default_icon": "16x16.png", 
     "icons": ["128x128.png"], 
     "default_title": "Dictionary", 
     "default_popup": "index.html" 
    }, 

"icons": { 
    "16" : "16x16.png", 
    "48" : "48x48.png", 
    "128": "128x128.png" }, 

    "content_scripts": [ 
    { 
     "matches": ["<all_urls>"], 
    "css" : ["jqm-demos.css","jquery.mobile.min.css"], 
    "js": ["index.js","jquery.js","jquery.mobile.min.js"] 
} 
    ] 

} 

하지 않습니다

하지만 난 확장을로드 할 때 그것은

enter image description here

과 같이됩니다

답변

0

매니페스트 파일은 다음과 같아야합니다 : 스냅 샷에 따르면

{ 
    "update_url":"http://clients2.google.com/service/update2/crx", 
    "name": "Example", 
    "version": "1.0", 
    "manifest_version": 2, 
    "description": "Example Dictionary", 

    "browser_action": { 
    "default_icon": "16x16.png", 
    "icons": ["128x128.png"], 
    "default_title": "Dictionary", 
    "default_popup": "popup.html" 
    }, 

    "icons": { 
    "16" : "16x16.png", 
    "48" : "48x48.png", 
    "128": "128x128.png" 
    }, 

    "content_scripts": [ 
    { 
    "matches": ["<all_urls>"], 
    "css" : ["jqm-demos.css","jquery.mobile.min.css"], 
    "js": ["index.js","jquery.js","jquery.mobile.min.js"] 
    } 
    ] 
} 

, 당신은 재산을 default_popup하는 "popup.html"를 할당해야합니다. 이 필드는 사용자가 브라우저 작업 아이콘을 클릭했을 때 팝업 대화 상자에 표시 할 페이지를 나타냅니다.

희망이 도움이 될 것입니다.

관련 문제