diff options
-rw-r--r-- | chrome/common/extensions/docs/templates/articles/devtools.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/extensions/docs/templates/articles/devtools.html b/chrome/common/extensions/docs/templates/articles/devtools.html index 4d7fdf4..4ad7cbb 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); }); } |