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