Привет всем.
Прошу помогите, у меня вроде ссылка кликабельная но, нефига не переходит по ссылке.
html
<!doctype html>
<html>
  <head>
    <title>Get TinyURL popup</title>
    <script src=popup.js></script>
  </head>
  <body>
    <b>You're URL:</b>
    <a href="#" id="URLHere"></a>
  </body>
 
 </html>
js
chrome.tabs.query({
    active: true,
    windowId: chrome.windows.WINDOW_ID_CURRENT
}, function(tabs) {
    var tab = tabs[0];
    var url = tab.url;
    GetURL(url, (correctURL)=>{
        document.getElementById("URLHere").innerHTML = correctURL;
    });
});
function GetURL(url, callback){
    var xhr = new XMLHttpRequest();
    xhr.open('GET','https://мой-сайт.ру/api.php?url=' + url);
    xhr.onreadystatechange = function(){
        if(this.readyState===4)
            callback(this.responseText);
    };
    xhr.send();
}