| Index: chrome/common/extensions/docs/templates/articles/devtools.html
|
| diff --git a/chrome/common/extensions/docs/templates/articles/devtools.html b/chrome/common/extensions/docs/templates/articles/devtools.html
|
| index 4d7fdf476ec82641272b69fb28cb6f2d0e48a1fc..4ad7cbbf58f0f114aa136856debd0308442a248d 100644
|
| --- a/chrome/common/extensions/docs/templates/articles/devtools.html
|
| +++ b/chrome/common/extensions/docs/templates/articles/devtools.html
|
| @@ -209,7 +209,7 @@ chrome.runtime.onConnect.addListener(function(devToolsConnection) {
|
| // add the listener
|
| devToolsConnection.onMessage.addListener(devToolsListener);
|
|
|
| - devToolsConnection.onDisconnect(function() {
|
| + devToolsConnection.onDisconnect.addListener(function() {
|
| devToolsConnection.onMessage.removeListener(devToolsListener);
|
| });
|
| }
|
|
|