Avoid rebooting the Google Chrome extension

I am developing a Google Chrome extension. Every time the JavaScript source code changes, I have to click "download unpacked extension" again for the changes to take effect.

Rebooting the extension at each iteration is very tedious. Can this be avoided?

+7
source share
1 answer

Depends on the asset, allows you to view:


Assets --------------------------------------- - Necessary actions

popup.html HTML -------------------------- Refresh browser page

popup.html JS ------------------------------- Reload your browser page

contentscript through manifest ----------------- Update extension

contentcript via executeScript (code) - location.reload(true) on the background page

contentcript via executeScript (file) ---- Reload browser page

background.html HTML ------------------- location.reload(true) on the original page

background.html JS ------------------------ location.reload(true) on the original page


For details on how to make location.reload(true) , see the page when debugging

The contents of the script requiring a reboot of the plugin was recently released and confirmed by the chrome command:

http://code.google.com/p/chromium/issues/detail?id=104610

Consider using a software injection ( contentscript via executeScript (file) ) so as not to reload the plugin for the contents of the script updates.

+6
source

All Articles