ColumnCopy
ColumnCopy copied to clipboard
Error in event handler: TypeError...
Hi,
while programming another extension, the DevTools of Chrome catch en error:
Error in event handler for (unknown): TypeError: Cannot read property 'options' of undefined at chrome-extension://lapbbfoohlcmlbdaakldmmallcbcbpjb/src/inject/inject.js:12:44
` function ColumnCopy() { var that = this;
chrome.extension.sendRequest({ method: 'getOptions' }, function(response) {
that.options = $.extend({}, response.options);
that.init();
});
} `
ColumnCopy did not disturb my work since now, don't know why.
You should write anything like this:
if (!response) return false; that.options = $.extend({}, response.options);
But sometimes a very useful extension! Thank you.