10 lines
323 B
JavaScript
10 lines
323 B
JavaScript
chrome.tabs.query({active: true}, function (tabs) {
|
|
var url = new URL(tabs[0].url);
|
|
var key = url.protocol + "//" + url.host;
|
|
chrome.storage.local.get(key, function (result) {
|
|
if(result[key]) {
|
|
document.getElementById("lastModified").innerText = result[key].modified;
|
|
}
|
|
});
|
|
});
|
|
|