aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/info-main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-12-13 12:46:36 -0500
committerGitHub <noreply@github.com>2020-12-13 12:46:36 -0500
commitdabe5fa8994de1f93acd41a29bd168f485a98e29 (patch)
treeb97c72a81a69788651c214191ec9c1033ba33f1d /ext/bg/js/info-main.js
parent14b9e0621b34d34411c1e3eec8ff1d89b6717756 (diff)
Update info (#1108)
* Show language * Show extension manifest name + version
Diffstat (limited to 'ext/bg/js/info-main.js')
-rw-r--r--ext/bg/js/info-main.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/bg/js/info-main.js b/ext/bg/js/info-main.js
index 04455a4f..58e9d3b7 100644
--- a/ext/bg/js/info-main.js
+++ b/ext/bg/js/info-main.js
@@ -50,20 +50,22 @@ function getOperatingSystemDisplayName(os) {
document.querySelector('#content-scroll-focus').focus();
const manifest = chrome.runtime.getManifest();
+ const language = chrome.i18n.getUILanguage();
api.forwardLogsToBackend();
await yomichan.prepare();
const {userAgent} = navigator;
- const {version} = manifest;
+ const {name, version} = manifest;
const {browser, platform: {os}} = await api.getEnvironmentInfo();
const thisVersionLink = document.querySelector('#release-notes-this-version-link');
thisVersionLink.href = thisVersionLink.dataset.hrefFormat.replace(/\{version\}/g, version);
- document.querySelector('#version').textContent = `${version}`;
+ document.querySelector('#version').textContent = `${name} ${version}`;
document.querySelector('#browser').textContent = getBrowserDisplayName(browser);
document.querySelector('#platform').textContent = getOperatingSystemDisplayName(os);
+ document.querySelector('#language').textContent = `${language}`;
document.querySelector('#user-agent').textContent = userAgent;
(async () => {