Cannot read property 'onBoundsChanged' of undefined





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-1















When I write a extension for google chrome I got error as title question. Below is my code:



chrome.browserAction.onClicked.addListener(function (tab) {
chrome.tabs.executeScript(null, {
file: "libs/jquery.js"
}, function () {
chrome.tabs.executeScript(null, {
file: "src/content.js"
});
});
});

chrome.app.window.onBoundsChanged.addListener(function (tab) {
chrome.tabs.executeScript(null, {
file: "libs/jquery.js"
}, function () {
chrome.tabs.executeScript(null, {
file: "src/content.js"
});
});
});


Firstly, I got success with onClicked event. But I want extension work when I resized window. But when I add 2nd event. Error occur



Please help me this error
Thank you



manifest.json



{
"name": "Bootstrap Grid for any Website",
"version": "1.1.0",
"manifest_version": 2,
"description": "Quickly toggle a Bootstrap Grid for any website. Easy to use, easy success.",
"browser_action": {
"default_icon": "src/icon48.png"
},
"background" : {
"scripts" : [
"src/background.js"
]
},
"content_scripts": [
{
"js": [ "src/send_value.js" ],
"matches": [ "<all_urls>" ],
"all_frames": true,
"run_at": "document_end"
}
],
"permissions": ["activeTab"]
}









share|improve this question































    -1















    When I write a extension for google chrome I got error as title question. Below is my code:



    chrome.browserAction.onClicked.addListener(function (tab) {
    chrome.tabs.executeScript(null, {
    file: "libs/jquery.js"
    }, function () {
    chrome.tabs.executeScript(null, {
    file: "src/content.js"
    });
    });
    });

    chrome.app.window.onBoundsChanged.addListener(function (tab) {
    chrome.tabs.executeScript(null, {
    file: "libs/jquery.js"
    }, function () {
    chrome.tabs.executeScript(null, {
    file: "src/content.js"
    });
    });
    });


    Firstly, I got success with onClicked event. But I want extension work when I resized window. But when I add 2nd event. Error occur



    Please help me this error
    Thank you



    manifest.json



    {
    "name": "Bootstrap Grid for any Website",
    "version": "1.1.0",
    "manifest_version": 2,
    "description": "Quickly toggle a Bootstrap Grid for any website. Easy to use, easy success.",
    "browser_action": {
    "default_icon": "src/icon48.png"
    },
    "background" : {
    "scripts" : [
    "src/background.js"
    ]
    },
    "content_scripts": [
    {
    "js": [ "src/send_value.js" ],
    "matches": [ "<all_urls>" ],
    "all_frames": true,
    "run_at": "document_end"
    }
    ],
    "permissions": ["activeTab"]
    }









    share|improve this question



























      -1












      -1








      -1








      When I write a extension for google chrome I got error as title question. Below is my code:



      chrome.browserAction.onClicked.addListener(function (tab) {
      chrome.tabs.executeScript(null, {
      file: "libs/jquery.js"
      }, function () {
      chrome.tabs.executeScript(null, {
      file: "src/content.js"
      });
      });
      });

      chrome.app.window.onBoundsChanged.addListener(function (tab) {
      chrome.tabs.executeScript(null, {
      file: "libs/jquery.js"
      }, function () {
      chrome.tabs.executeScript(null, {
      file: "src/content.js"
      });
      });
      });


      Firstly, I got success with onClicked event. But I want extension work when I resized window. But when I add 2nd event. Error occur



      Please help me this error
      Thank you



      manifest.json



      {
      "name": "Bootstrap Grid for any Website",
      "version": "1.1.0",
      "manifest_version": 2,
      "description": "Quickly toggle a Bootstrap Grid for any website. Easy to use, easy success.",
      "browser_action": {
      "default_icon": "src/icon48.png"
      },
      "background" : {
      "scripts" : [
      "src/background.js"
      ]
      },
      "content_scripts": [
      {
      "js": [ "src/send_value.js" ],
      "matches": [ "<all_urls>" ],
      "all_frames": true,
      "run_at": "document_end"
      }
      ],
      "permissions": ["activeTab"]
      }









      share|improve this question
















      When I write a extension for google chrome I got error as title question. Below is my code:



      chrome.browserAction.onClicked.addListener(function (tab) {
      chrome.tabs.executeScript(null, {
      file: "libs/jquery.js"
      }, function () {
      chrome.tabs.executeScript(null, {
      file: "src/content.js"
      });
      });
      });

      chrome.app.window.onBoundsChanged.addListener(function (tab) {
      chrome.tabs.executeScript(null, {
      file: "libs/jquery.js"
      }, function () {
      chrome.tabs.executeScript(null, {
      file: "src/content.js"
      });
      });
      });


      Firstly, I got success with onClicked event. But I want extension work when I resized window. But when I add 2nd event. Error occur



      Please help me this error
      Thank you



      manifest.json



      {
      "name": "Bootstrap Grid for any Website",
      "version": "1.1.0",
      "manifest_version": 2,
      "description": "Quickly toggle a Bootstrap Grid for any website. Easy to use, easy success.",
      "browser_action": {
      "default_icon": "src/icon48.png"
      },
      "background" : {
      "scripts" : [
      "src/background.js"
      ]
      },
      "content_scripts": [
      {
      "js": [ "src/send_value.js" ],
      "matches": [ "<all_urls>" ],
      "all_frames": true,
      "run_at": "document_end"
      }
      ],
      "permissions": ["activeTab"]
      }






      google-chrome google-chrome-extension






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 26 '18 at 15:30







      Nguyen Thanh Tam

















      asked Nov 25 '18 at 11:53









      Nguyen Thanh TamNguyen Thanh Tam

      63




      63
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Your extension folder look like:



          Folder strucrure



          Your manifest.json file:



          {
          "name": "Bootstrap Grid for any Website",
          "version": "1.1.0",
          "manifest_version": 2,
          "description": "Quickly toggle a Bootstrap Grid for any website. Easy to use, easy success.",
          "browser_action": {
          "default_icon": "src/icon48.png"
          },
          "background" : {
          "scripts" : [
          "background.js"
          ]
          },
          "permissions": [
          "tabs",
          "<all_urls>"
          ],

          "web_accessible_resources":[
          "src/content",
          "src/content_temp",
          "libs/jquery.js"
          ]

          }


          background.js:



          chrome.browserAction.onClicked.addListener(function (tab) {
          chrome.tabs.executeScript(null, {
          file: "libs/jquery.js"
          }, function () {
          chrome.tabs.executeScript(null, {
          file: "src/content.js"
          });
          });
          });

          chrome.runtime.onMessage.addListener(function(message){
          if(message.info !== 1) return;

          chrome.tabs.executeScript(null, {
          file: "src/content_temp.js"
          });
          });


          And your send_value.js file I put into content.js:



          window.addEventListener('resize', function (e) {
          // here you send message to background.js
          var message = {info: 1}
          chrome.runtime.sendMessage("", message);
          });


          function devTool() {


          As for me, it works fine! :-)






          share|improve this answer



















          • 1





            I changed to "permissions": [ "activeTab" ], to pass warning from google store. Anw, Thank you for your spirit. Again again and again. I do not see many person like you in my life. You have my respect. :)

            – Nguyen Thanh Tam
            Nov 27 '18 at 2:05



















          1














          I think you've mixed up chrome extensions and chrome apps. As we can read here, chrome.app.window is




          not associated with any Chrome browser windows




          I recommend you create content.js script where you put something like this:



          window.addEventListener('resize', function(e){
          ....
          // here you send message to background.js
          var message = { info: "window resized");
          chrome.runtime.sendMessage( "", message );
          })


          content.js must be executed in every tab you specified in manifest file.



          In your background.js you should write:



          chrome.runtime.onMessage.addListener(function(message){
          if(message.info === "window resized"){
          chrome.tabs.executeScript(null, // ..... the stuff you've written above
          ......
          }
          });


          Links:



          chrome.runtime.sendMessage



          chrome.runtime.onMessage



          Good luck!



          UPD (in manifest file):



                "background": { 
          "scripts": [ "background.js"]
          },
          "content_scripts": [
          {
          "js": [ "content.js" ],
          "matches": [ "<all_urls>" ],
          "all_frames": true,
          "run_at": "document_end"
          }
          ],


          UPD 2. This snippet is from my working extension manifest:



          "web_accessible_resources": [
          "main.js",
          "style.css",
          "options/options.css",
          "options/options.js"
          ]





          share|improve this answer


























          • Sorry, it does not work

            – Nguyen Thanh Tam
            Nov 25 '18 at 15:13











          • "background" : { "scripts" : [ "src/background.js", "src/content.js" ] }, is it right

            – Nguyen Thanh Tam
            Nov 25 '18 at 15:14













          • Look at the UPD in post above.

            – Max Kurtz
            Nov 25 '18 at 15:32













          • thank you very much. you saved my life.

            – Nguyen Thanh Tam
            Nov 25 '18 at 16:12











          • Another concern about matches in content_scripts. I got "Broad host permissions" when upload to google store even I specify the "matches" to "http://*/*". Do you have exp about this

            – Nguyen Thanh Tam
            Nov 26 '18 at 2:01












          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53467144%2fcannot-read-property-onboundschanged-of-undefined%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Your extension folder look like:



          Folder strucrure



          Your manifest.json file:



          {
          "name": "Bootstrap Grid for any Website",
          "version": "1.1.0",
          "manifest_version": 2,
          "description": "Quickly toggle a Bootstrap Grid for any website. Easy to use, easy success.",
          "browser_action": {
          "default_icon": "src/icon48.png"
          },
          "background" : {
          "scripts" : [
          "background.js"
          ]
          },
          "permissions": [
          "tabs",
          "<all_urls>"
          ],

          "web_accessible_resources":[
          "src/content",
          "src/content_temp",
          "libs/jquery.js"
          ]

          }


          background.js:



          chrome.browserAction.onClicked.addListener(function (tab) {
          chrome.tabs.executeScript(null, {
          file: "libs/jquery.js"
          }, function () {
          chrome.tabs.executeScript(null, {
          file: "src/content.js"
          });
          });
          });

          chrome.runtime.onMessage.addListener(function(message){
          if(message.info !== 1) return;

          chrome.tabs.executeScript(null, {
          file: "src/content_temp.js"
          });
          });


          And your send_value.js file I put into content.js:



          window.addEventListener('resize', function (e) {
          // here you send message to background.js
          var message = {info: 1}
          chrome.runtime.sendMessage("", message);
          });


          function devTool() {


          As for me, it works fine! :-)






          share|improve this answer



















          • 1





            I changed to "permissions": [ "activeTab" ], to pass warning from google store. Anw, Thank you for your spirit. Again again and again. I do not see many person like you in my life. You have my respect. :)

            – Nguyen Thanh Tam
            Nov 27 '18 at 2:05
















          0














          Your extension folder look like:



          Folder strucrure



          Your manifest.json file:



          {
          "name": "Bootstrap Grid for any Website",
          "version": "1.1.0",
          "manifest_version": 2,
          "description": "Quickly toggle a Bootstrap Grid for any website. Easy to use, easy success.",
          "browser_action": {
          "default_icon": "src/icon48.png"
          },
          "background" : {
          "scripts" : [
          "background.js"
          ]
          },
          "permissions": [
          "tabs",
          "<all_urls>"
          ],

          "web_accessible_resources":[
          "src/content",
          "src/content_temp",
          "libs/jquery.js"
          ]

          }


          background.js:



          chrome.browserAction.onClicked.addListener(function (tab) {
          chrome.tabs.executeScript(null, {
          file: "libs/jquery.js"
          }, function () {
          chrome.tabs.executeScript(null, {
          file: "src/content.js"
          });
          });
          });

          chrome.runtime.onMessage.addListener(function(message){
          if(message.info !== 1) return;

          chrome.tabs.executeScript(null, {
          file: "src/content_temp.js"
          });
          });


          And your send_value.js file I put into content.js:



          window.addEventListener('resize', function (e) {
          // here you send message to background.js
          var message = {info: 1}
          chrome.runtime.sendMessage("", message);
          });


          function devTool() {


          As for me, it works fine! :-)






          share|improve this answer



















          • 1





            I changed to "permissions": [ "activeTab" ], to pass warning from google store. Anw, Thank you for your spirit. Again again and again. I do not see many person like you in my life. You have my respect. :)

            – Nguyen Thanh Tam
            Nov 27 '18 at 2:05














          0












          0








          0







          Your extension folder look like:



          Folder strucrure



          Your manifest.json file:



          {
          "name": "Bootstrap Grid for any Website",
          "version": "1.1.0",
          "manifest_version": 2,
          "description": "Quickly toggle a Bootstrap Grid for any website. Easy to use, easy success.",
          "browser_action": {
          "default_icon": "src/icon48.png"
          },
          "background" : {
          "scripts" : [
          "background.js"
          ]
          },
          "permissions": [
          "tabs",
          "<all_urls>"
          ],

          "web_accessible_resources":[
          "src/content",
          "src/content_temp",
          "libs/jquery.js"
          ]

          }


          background.js:



          chrome.browserAction.onClicked.addListener(function (tab) {
          chrome.tabs.executeScript(null, {
          file: "libs/jquery.js"
          }, function () {
          chrome.tabs.executeScript(null, {
          file: "src/content.js"
          });
          });
          });

          chrome.runtime.onMessage.addListener(function(message){
          if(message.info !== 1) return;

          chrome.tabs.executeScript(null, {
          file: "src/content_temp.js"
          });
          });


          And your send_value.js file I put into content.js:



          window.addEventListener('resize', function (e) {
          // here you send message to background.js
          var message = {info: 1}
          chrome.runtime.sendMessage("", message);
          });


          function devTool() {


          As for me, it works fine! :-)






          share|improve this answer













          Your extension folder look like:



          Folder strucrure



          Your manifest.json file:



          {
          "name": "Bootstrap Grid for any Website",
          "version": "1.1.0",
          "manifest_version": 2,
          "description": "Quickly toggle a Bootstrap Grid for any website. Easy to use, easy success.",
          "browser_action": {
          "default_icon": "src/icon48.png"
          },
          "background" : {
          "scripts" : [
          "background.js"
          ]
          },
          "permissions": [
          "tabs",
          "<all_urls>"
          ],

          "web_accessible_resources":[
          "src/content",
          "src/content_temp",
          "libs/jquery.js"
          ]

          }


          background.js:



          chrome.browserAction.onClicked.addListener(function (tab) {
          chrome.tabs.executeScript(null, {
          file: "libs/jquery.js"
          }, function () {
          chrome.tabs.executeScript(null, {
          file: "src/content.js"
          });
          });
          });

          chrome.runtime.onMessage.addListener(function(message){
          if(message.info !== 1) return;

          chrome.tabs.executeScript(null, {
          file: "src/content_temp.js"
          });
          });


          And your send_value.js file I put into content.js:



          window.addEventListener('resize', function (e) {
          // here you send message to background.js
          var message = {info: 1}
          chrome.runtime.sendMessage("", message);
          });


          function devTool() {


          As for me, it works fine! :-)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 26 '18 at 16:37









          Max KurtzMax Kurtz

          1139




          1139








          • 1





            I changed to "permissions": [ "activeTab" ], to pass warning from google store. Anw, Thank you for your spirit. Again again and again. I do not see many person like you in my life. You have my respect. :)

            – Nguyen Thanh Tam
            Nov 27 '18 at 2:05














          • 1





            I changed to "permissions": [ "activeTab" ], to pass warning from google store. Anw, Thank you for your spirit. Again again and again. I do not see many person like you in my life. You have my respect. :)

            – Nguyen Thanh Tam
            Nov 27 '18 at 2:05








          1




          1





          I changed to "permissions": [ "activeTab" ], to pass warning from google store. Anw, Thank you for your spirit. Again again and again. I do not see many person like you in my life. You have my respect. :)

          – Nguyen Thanh Tam
          Nov 27 '18 at 2:05





          I changed to "permissions": [ "activeTab" ], to pass warning from google store. Anw, Thank you for your spirit. Again again and again. I do not see many person like you in my life. You have my respect. :)

          – Nguyen Thanh Tam
          Nov 27 '18 at 2:05













          1














          I think you've mixed up chrome extensions and chrome apps. As we can read here, chrome.app.window is




          not associated with any Chrome browser windows




          I recommend you create content.js script where you put something like this:



          window.addEventListener('resize', function(e){
          ....
          // here you send message to background.js
          var message = { info: "window resized");
          chrome.runtime.sendMessage( "", message );
          })


          content.js must be executed in every tab you specified in manifest file.



          In your background.js you should write:



          chrome.runtime.onMessage.addListener(function(message){
          if(message.info === "window resized"){
          chrome.tabs.executeScript(null, // ..... the stuff you've written above
          ......
          }
          });


          Links:



          chrome.runtime.sendMessage



          chrome.runtime.onMessage



          Good luck!



          UPD (in manifest file):



                "background": { 
          "scripts": [ "background.js"]
          },
          "content_scripts": [
          {
          "js": [ "content.js" ],
          "matches": [ "<all_urls>" ],
          "all_frames": true,
          "run_at": "document_end"
          }
          ],


          UPD 2. This snippet is from my working extension manifest:



          "web_accessible_resources": [
          "main.js",
          "style.css",
          "options/options.css",
          "options/options.js"
          ]





          share|improve this answer


























          • Sorry, it does not work

            – Nguyen Thanh Tam
            Nov 25 '18 at 15:13











          • "background" : { "scripts" : [ "src/background.js", "src/content.js" ] }, is it right

            – Nguyen Thanh Tam
            Nov 25 '18 at 15:14













          • Look at the UPD in post above.

            – Max Kurtz
            Nov 25 '18 at 15:32













          • thank you very much. you saved my life.

            – Nguyen Thanh Tam
            Nov 25 '18 at 16:12











          • Another concern about matches in content_scripts. I got "Broad host permissions" when upload to google store even I specify the "matches" to "http://*/*". Do you have exp about this

            – Nguyen Thanh Tam
            Nov 26 '18 at 2:01
















          1














          I think you've mixed up chrome extensions and chrome apps. As we can read here, chrome.app.window is




          not associated with any Chrome browser windows




          I recommend you create content.js script where you put something like this:



          window.addEventListener('resize', function(e){
          ....
          // here you send message to background.js
          var message = { info: "window resized");
          chrome.runtime.sendMessage( "", message );
          })


          content.js must be executed in every tab you specified in manifest file.



          In your background.js you should write:



          chrome.runtime.onMessage.addListener(function(message){
          if(message.info === "window resized"){
          chrome.tabs.executeScript(null, // ..... the stuff you've written above
          ......
          }
          });


          Links:



          chrome.runtime.sendMessage



          chrome.runtime.onMessage



          Good luck!



          UPD (in manifest file):



                "background": { 
          "scripts": [ "background.js"]
          },
          "content_scripts": [
          {
          "js": [ "content.js" ],
          "matches": [ "<all_urls>" ],
          "all_frames": true,
          "run_at": "document_end"
          }
          ],


          UPD 2. This snippet is from my working extension manifest:



          "web_accessible_resources": [
          "main.js",
          "style.css",
          "options/options.css",
          "options/options.js"
          ]





          share|improve this answer


























          • Sorry, it does not work

            – Nguyen Thanh Tam
            Nov 25 '18 at 15:13











          • "background" : { "scripts" : [ "src/background.js", "src/content.js" ] }, is it right

            – Nguyen Thanh Tam
            Nov 25 '18 at 15:14













          • Look at the UPD in post above.

            – Max Kurtz
            Nov 25 '18 at 15:32













          • thank you very much. you saved my life.

            – Nguyen Thanh Tam
            Nov 25 '18 at 16:12











          • Another concern about matches in content_scripts. I got "Broad host permissions" when upload to google store even I specify the "matches" to "http://*/*". Do you have exp about this

            – Nguyen Thanh Tam
            Nov 26 '18 at 2:01














          1












          1








          1







          I think you've mixed up chrome extensions and chrome apps. As we can read here, chrome.app.window is




          not associated with any Chrome browser windows




          I recommend you create content.js script where you put something like this:



          window.addEventListener('resize', function(e){
          ....
          // here you send message to background.js
          var message = { info: "window resized");
          chrome.runtime.sendMessage( "", message );
          })


          content.js must be executed in every tab you specified in manifest file.



          In your background.js you should write:



          chrome.runtime.onMessage.addListener(function(message){
          if(message.info === "window resized"){
          chrome.tabs.executeScript(null, // ..... the stuff you've written above
          ......
          }
          });


          Links:



          chrome.runtime.sendMessage



          chrome.runtime.onMessage



          Good luck!



          UPD (in manifest file):



                "background": { 
          "scripts": [ "background.js"]
          },
          "content_scripts": [
          {
          "js": [ "content.js" ],
          "matches": [ "<all_urls>" ],
          "all_frames": true,
          "run_at": "document_end"
          }
          ],


          UPD 2. This snippet is from my working extension manifest:



          "web_accessible_resources": [
          "main.js",
          "style.css",
          "options/options.css",
          "options/options.js"
          ]





          share|improve this answer















          I think you've mixed up chrome extensions and chrome apps. As we can read here, chrome.app.window is




          not associated with any Chrome browser windows




          I recommend you create content.js script where you put something like this:



          window.addEventListener('resize', function(e){
          ....
          // here you send message to background.js
          var message = { info: "window resized");
          chrome.runtime.sendMessage( "", message );
          })


          content.js must be executed in every tab you specified in manifest file.



          In your background.js you should write:



          chrome.runtime.onMessage.addListener(function(message){
          if(message.info === "window resized"){
          chrome.tabs.executeScript(null, // ..... the stuff you've written above
          ......
          }
          });


          Links:



          chrome.runtime.sendMessage



          chrome.runtime.onMessage



          Good luck!



          UPD (in manifest file):



                "background": { 
          "scripts": [ "background.js"]
          },
          "content_scripts": [
          {
          "js": [ "content.js" ],
          "matches": [ "<all_urls>" ],
          "all_frames": true,
          "run_at": "document_end"
          }
          ],


          UPD 2. This snippet is from my working extension manifest:



          "web_accessible_resources": [
          "main.js",
          "style.css",
          "options/options.css",
          "options/options.js"
          ]






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 26 '18 at 9:01

























          answered Nov 25 '18 at 14:04









          Max KurtzMax Kurtz

          1139




          1139













          • Sorry, it does not work

            – Nguyen Thanh Tam
            Nov 25 '18 at 15:13











          • "background" : { "scripts" : [ "src/background.js", "src/content.js" ] }, is it right

            – Nguyen Thanh Tam
            Nov 25 '18 at 15:14













          • Look at the UPD in post above.

            – Max Kurtz
            Nov 25 '18 at 15:32













          • thank you very much. you saved my life.

            – Nguyen Thanh Tam
            Nov 25 '18 at 16:12











          • Another concern about matches in content_scripts. I got "Broad host permissions" when upload to google store even I specify the "matches" to "http://*/*". Do you have exp about this

            – Nguyen Thanh Tam
            Nov 26 '18 at 2:01



















          • Sorry, it does not work

            – Nguyen Thanh Tam
            Nov 25 '18 at 15:13











          • "background" : { "scripts" : [ "src/background.js", "src/content.js" ] }, is it right

            – Nguyen Thanh Tam
            Nov 25 '18 at 15:14













          • Look at the UPD in post above.

            – Max Kurtz
            Nov 25 '18 at 15:32













          • thank you very much. you saved my life.

            – Nguyen Thanh Tam
            Nov 25 '18 at 16:12











          • Another concern about matches in content_scripts. I got "Broad host permissions" when upload to google store even I specify the "matches" to "http://*/*". Do you have exp about this

            – Nguyen Thanh Tam
            Nov 26 '18 at 2:01

















          Sorry, it does not work

          – Nguyen Thanh Tam
          Nov 25 '18 at 15:13





          Sorry, it does not work

          – Nguyen Thanh Tam
          Nov 25 '18 at 15:13













          "background" : { "scripts" : [ "src/background.js", "src/content.js" ] }, is it right

          – Nguyen Thanh Tam
          Nov 25 '18 at 15:14







          "background" : { "scripts" : [ "src/background.js", "src/content.js" ] }, is it right

          – Nguyen Thanh Tam
          Nov 25 '18 at 15:14















          Look at the UPD in post above.

          – Max Kurtz
          Nov 25 '18 at 15:32







          Look at the UPD in post above.

          – Max Kurtz
          Nov 25 '18 at 15:32















          thank you very much. you saved my life.

          – Nguyen Thanh Tam
          Nov 25 '18 at 16:12





          thank you very much. you saved my life.

          – Nguyen Thanh Tam
          Nov 25 '18 at 16:12













          Another concern about matches in content_scripts. I got "Broad host permissions" when upload to google store even I specify the "matches" to "http://*/*". Do you have exp about this

          – Nguyen Thanh Tam
          Nov 26 '18 at 2:01





          Another concern about matches in content_scripts. I got "Broad host permissions" when upload to google store even I specify the "matches" to "http://*/*". Do you have exp about this

          – Nguyen Thanh Tam
          Nov 26 '18 at 2:01


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53467144%2fcannot-read-property-onboundschanged-of-undefined%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Xamarin.form Move up view when keyboard appear

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Anylogic : not able to use stopDelay()