回答編集履歴
1
extId修正委漏れ
answer
CHANGED
@@ -49,7 +49,7 @@
|
|
49
49
|
```
|
50
50
|
app.js
|
51
51
|
```js
|
52
|
-
const extId = '
|
52
|
+
const extId = 'bbchnfmcdcokmipmngjjniflkoakncbl';
|
53
53
|
chrome.runtime.sendMessage(extId, 'content tab handle');
|
54
54
|
|
55
55
|
const tag = document.createElement('script');
|
@@ -114,7 +114,7 @@
|
|
114
114
|
|
115
115
|
function DrawGraph() {
|
116
116
|
requestAnimationFrame(DrawGraph);
|
117
|
-
chrome.runtime.sendMessage(
|
117
|
+
chrome.runtime.sendMessage(extId, 'get audio data', function(spectrums) {
|
118
118
|
obj.geometry.dispose();
|
119
119
|
obj.geometry = new THREE.TorusKnotGeometry( //小数をかけてるのは値を小さくして、3Dオブジェクトのサイズを小さくするため
|
120
120
|
Math.round(spectrums[0] * 2.0), //全体的な大きさ
|