0

マニフェストにこれらの行を追加しました

permissions": [ "tabs","webRequest", "webRequestBlocking", "http://*/*", "https://*/*","ftp://*/*","contextMenus","proxy","cookies"],

私のchromeバージョンは21.0.1180.89です。background.jsページでchrome APIを使用しようとしました

var callbackFunction = function(details){
alert("response started ");
}

chrome.webRequest.onResponseStarted.addListener(callbackFunction);

しかし、私は次のエラーが発生しています

"Uncaught TypeError: Cannot read property 'onResponseStarted' of undefined"
4

0 に答える 0