첫 번째 매우 간단한 크롬 확장 프로그램을 쓰려고합니다. 콘솔에 몇 가지 메시지를 써야합니다. 여기 내 코드입니다 :콘솔에 간단한 크롬 확장 로그가 작동하지 않습니다.
manifest.json을
{
"manifest_version": 2,
"name" : "Hello world",
"version" : "1.0",
"description" : "This is a simple chrome extention",
"background": "background.html"
}
background.html
<script type="text/javascript">
window.onload = function() {
window.setInterval(function() {
console.log("Hello world");
}, 10000);
}
</script>
그러나 크롬 콘솔에 아무것도 기록하지 않습니다. 여기 뭐가 잘못 됐니?
확인. 'background_page'로 변경되고 chrome-extensions에서 다음 경고가 표시됩니다. ''background_page '에는 1 이하의 매니페스트 버전이 필요합니다.' . 어쨌든 내 타이핑은 '무작위'가 아니었지만 나는 두려운 예를 보았다. – SimonD