質問編集履歴
1
コードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,15 @@
|
|
5
5
|
エラーの原因と正しい書き方を教えていただけたら幸いです。
|
6
6
|
|
7
7
|
```javascript
|
8
|
+
function onRun() {
|
9
|
+
chrome.scripting.executeScript({
|
10
|
+
target: { tabId: tab.id },
|
11
|
+
func: getContents,
|
12
|
+
}, (injectionResults) => {
|
13
|
+
...
|
14
|
+
});
|
15
|
+
}
|
16
|
+
|
8
17
|
function sendRequest(html_element) {
|
9
18
|
...
|
10
19
|
}
|