When i send sqlresult from background page to content script (before sending screen)
it loss data and transforming to
it happends only with SqlResultSet, other vriables and simnple array`s sending normally
code in background.js
chrome.tabs.query({active: true, currentWindow: true}, function(tabs){
chrome.tabs.sendMessage(tabs[0].id, {
action: "getRight",
res: results,
leng: len }, function(response) {});
});
code in check.js (content page)
chrome.extension.onMessage.addListener(function(msg, sender, sendResponse) {
switch(msg.action) {
case "getRight":
console.log(msg.res);
break;
}
});
What is the problem?
I personally found the correct solution of the problem
insteal of sending
i will send
and receiving