質問するログイン新規登録

回答編集履歴

1

extId修正委漏れ

2017/01/23 09:09

投稿

turbgraphics200
turbgraphics200

スコア4269

answer CHANGED
@@ -49,7 +49,7 @@
49
49
  ```
50
50
  app.js
51
51
  ```js
52
- const extId = 'necjgeoojajimfodpdjlpnmkdobdlfia';
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('necjgeoojajimfodpdjlpnmkdobdlfia', 'get audio data', function(spectrums) {
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), //全体的な大きさ