私はGoogle Chrome拡張機能を初めて使用し、現在のページのコンテンツをチェックし、それに基づいてサーバーのIDを取得するWebサイト用に作成しました(4つのVMを備えたWebファームがあります)。サーバーIDを使用して、拡張アイコンを変更してそこに番号を表示したくありません。私は使用してみました:
chrome.browserAction.setIcon({
path : folder + icons[2],
tabId: tab.id
});
しかし、私はこのエラーが発生しています:chrome.browserAction is not available: You do not have permission to access this API. Ensure that the required permission or manifest property is included in your manifest.json.
エラーをグーグルで検索し、ドキュメントを検索しましたが、これの原因が見つかりません...