Skip to content

Commit ee5a3b1

Browse files
committed
Merge pull request EFForg#1342 from semenko/chrome-add-version
[Chrome] Add version to Chrome popup
2 parents 3bcf833 + 84cc474 commit ee5a3b1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

chromium/popup.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ <h3 i18n="chrome_experimental_rules"></h3>
4949
</section>
5050
<footer>
5151
<a id="whatIsThis" href="https://www.eff.org/https-everywhere" target="_blank" tabindex="-1" i18n="chrome_what_is_this">blah</a>
52+
<p><small>(Version: <span id="current-version"></span>)</small></p>
5253
<!-- <a href="" title="HTTPS Everywhere Options">Options</a> -->
5354
</footer>
5455

chromium/popup.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ document.addEventListener("DOMContentLoaded", function () {
9090
unstableRules = document.getElementById("UnstableRules");
9191
chrome.tabs.getSelected(null, gotTab);
9292

93+
// Print the extension's current version.
94+
var the_manifest = chrome.runtime.getManifest();
95+
var version_info = document.getElementById('current-version');
96+
version_info.innerText = the_manifest.version;
97+
9398
// Set up toggle checkbox for HTTP nowhere mode
9499
getOption_('httpNowhere', false, function(item) {
95100
var httpNowhereCheckbox = document.getElementById('http-nowhere-checkbox');

0 commit comments

Comments
 (0)