chrome.tabs.onUpdated.addListener((tabId, info) => {
if (info.status === 'complete') {
//code
}
});
chrome.runtime.onConnect.addListener(port => {
// some code
});
const port = chrome.tabs.connect(id);
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
все норм, спасибо