aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-28 13:42:48 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-09-28 16:04:22 -0400
commit1a8cb7839179b9ba328ea81310804f28d07e2887 (patch)
tree6d3dc6dd65355f48664e2c6df59008408f1c561e /ext
parentb42fa9581fc6c6ca27a0cf3759f6f029b18f1ab2 (diff)
Add version information
Diffstat (limited to 'ext')
-rw-r--r--ext/bg/js/settings.js15
-rw-r--r--ext/bg/settings.html2
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> &bull; <a href="https://foosoft.net/projects/yomichan/" target="_blank" rel="noopener">Homepage</a> &bull; <a href="legal.html">Legal</a></small>
+ <small><span id="extension-info"></span> &bull; <a href="search.html">Search</a> &bull; <a href="https://foosoft.net/projects/yomichan/" target="_blank" rel="noopener">Homepage</a> &bull; <a href="legal.html">Legal</a></small>
</div>
</div>