i have a trouble with content script.
When oi run it with breakpoint its work fine, but without breakpoint not working properly. $(this).html(a.farewell); not update DOM.
My manifest contain "run_at": "document_end"
$(function () {
$(document).ready(function () {
console.log("ready!");
var a = "1";
var rows = $("tr.row");
rows.each(function (i) {
var id = $(this).attr("data-bull-id");
chrome.runtime.sendMessage({ getStorage: id }, function (response) {
a = response;
console.log(response.farewell);
$(this).html(a.farewell);
});
// this.innerHTML = a.test;
});
console.log("ready2!");
});
});