diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-28 13:42:48 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-28 16:04:22 -0400 |
commit | 1a8cb7839179b9ba328ea81310804f28d07e2887 (patch) | |
tree | 6d3dc6dd65355f48664e2c6df59008408f1c561e /ext | |
parent | b42fa9581fc6c6ca27a0cf3759f6f029b18f1ab2 (diff) |
Add version information
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/settings.js | 15 | ||||
-rw-r--r-- | ext/bg/settings.html | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/ext/bg/js/settings.js b/ext/bg/js/settings.js index a0fe7c70..3f107785 100644 --- a/ext/bg/js/settings.js +++ b/ext/bg/js/settings.js @@ -240,6 +240,8 @@ async function onFormOptionsChanged(e) { } async function onReady() { + showExtensionInformation(); + formSetupEventListeners(); await profileOptionsSetup(); @@ -741,3 +743,16 @@ function storageSpinnerShow(show) { 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}`; +} diff --git a/ext/bg/settings.html b/ext/bg/settings.html index 5a368e91..a3a4e380 100644 --- a/ext/bg/settings.html +++ b/ext/bg/settings.html @@ -534,7 +534,7 @@ <pre id="debug"></pre> <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> |