ColumnCopy icon indicating copy to clipboard operation
ColumnCopy copied to clipboard

Error in event handler: TypeError...

Open mathe1 opened this issue 6 years ago • 0 comments

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.

mathe1 avatar Aug 19 '18 18:08 mathe1