Add version information
This commit is contained in:
parent
b42fa9581f
commit
1a8cb78391
@ -240,6 +240,8 @@ async function onFormOptionsChanged(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function onReady() {
|
async function onReady() {
|
||||||
|
showExtensionInformation();
|
||||||
|
|
||||||
formSetupEventListeners();
|
formSetupEventListeners();
|
||||||
await profileOptionsSetup();
|
await profileOptionsSetup();
|
||||||
|
|
||||||
@ -741,3 +743,16 @@ function storageSpinnerShow(show) {
|
|||||||
spinner.hide();
|
spinner.hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Information
|
||||||
|
*/
|
||||||
|
|
||||||
|
function showExtensionInformation() {
|
||||||
|
const node = document.getElementById('extension-info');
|
||||||
|
if (node === null) { return; }
|
||||||
|
|
||||||
|
const manifest = chrome.runtime.getManifest();
|
||||||
|
node.textContent = `${manifest.name} v${manifest.version}`;
|
||||||
|
}
|
||||||
|
@ -534,7 +534,7 @@
|
|||||||
<pre id="debug"></pre>
|
<pre id="debug"></pre>
|
||||||
|
|
||||||
<div class="pull-right bottom-links">
|
<div class="pull-right bottom-links">
|
||||||
<small><a href="search.html">Search</a> • <a href="https://foosoft.net/projects/yomichan/" target="_blank" rel="noopener">Homepage</a> • <a href="legal.html">Legal</a></small>
|
<small><span id="extension-info"></span> • <a href="search.html">Search</a> • <a href="https://foosoft.net/projects/yomichan/" target="_blank" rel="noopener">Homepage</a> • <a href="legal.html">Legal</a></small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user