hatam nedir ve nasıl düzeltebilirim yardım edermisiniz
connectButton.addEventListener('click', function() {
const proxyConfig = {
mode: "fixed_servers",
rules: {
singleProxy: {
host: proxyIp,
port: parseInt(proxyPort),
username: document.getElementById("proxy-user").value,
password: document.getElementById("proxy-pass").value
}
}
};
chrome.proxy.settings.set({value: proxyConfig, scope: "regular"}, function() {
if(chrome.runtime.lastError) {
console.error(chrome.runtime.lastError);
// Burada hata mesajını kullanıcıya gösterebilirsiniz
return;
}
// Başarılı bir şekilde proxy ayarları yapıldı
console.log("Proxy ayarları başarıyla yapıldı");
});
});Uncaught TypeError: Invalid invocation