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/bg/js/settings.js | |
parent | b42fa9581fc6c6ca27a0cf3759f6f029b18f1ab2 (diff) |
Add version information
Diffstat (limited to 'ext/bg/js/settings.js')
-rw-r--r-- | ext/bg/js/settings.js | 15 |
1 files changed, 15 insertions, 0 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}`; +} |