エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
chrome.runtime.onMessage response with async await
tl;dr chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { (async () => { //... tl;dr chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { (async () => { // async code goes here // ... const result = await getSomething(); sendResponse(result); })(); // Important! Return true to indicate you want to send a response asynchronously return true; }); Or extract to an async function. chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { doSo
2024/02/08 リンク