iconのクリックで専用ページ
#web
拡張機能のiconをクリックしたときのpopupの参考は
https://github.com/GoogleChrome/chrome-extensions-samples/blob/50c8e0bb599f67f57d5889a8f6730d81a1d85822/api/action/popups/popup.html
このあたり
code:json
"action":{
"default_title": "HashtagScrap",
"default_popup": "popup.html"
},
みたいにして、アイコンクリック時にhtmlを出すようにしている
出したhtmlからjs を実行する
popupしたhtmlのjsのconsole.logがコンソールに出ないことがあった
拡張icon押したときにこのようなポップアップが出せるようになった
https://scrapbox.io/files/63b790d0ef2f7a001ddf4da9.png