Properly display current version in popup
This commit is contained in:
parent
6588364eee
commit
a0322b1174
@ -6,7 +6,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class='info-header'>
|
<div class='info-header'>
|
||||||
AlwaysKillSticky <span class='version'>0.6</span>
|
AlwaysKillSticky <span class='version'>0.0</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='main-button-container'>
|
<div class='main-button-container'>
|
||||||
<button type='button' class='main-button'></button>
|
<button type='button' class='main-button'></button>
|
||||||
|
|||||||
3
popup.js
3
popup.js
@ -156,6 +156,9 @@ function updateUIState() {
|
|||||||
function initialize() {
|
function initialize() {
|
||||||
window.ASK = { };
|
window.ASK = { };
|
||||||
|
|
||||||
|
// Update version.
|
||||||
|
document.querySelector(".info-header .version").innerHTML = chrome.runtime.getManifest().version;
|
||||||
|
|
||||||
// Retrieve saved settings.
|
// Retrieve saved settings.
|
||||||
chrome.tabs.query({currentWindow: true, active: true}, (tabs) => {
|
chrome.tabs.query({currentWindow: true, active: true}, (tabs) => {
|
||||||
ASK.activeTabLocation = tabs[0].url;
|
ASK.activeTabLocation = tabs[0].url;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user