diff options
author | Deathamns <deathamns@gmail.com> | 2014-10-20 22:10:59 +0200 |
---|---|---|
committer | Deathamns <deathamns@gmail.com> | 2014-11-09 17:39:38 +0100 |
commit | 749b6f186d59c65655d49d5859900746b502cb84 (patch) | |
tree | ce0459ce0d8701bd4d29be675fcd7d69ed56f1da /src/popup.html | |
parent | fbffc5b07e1e9069e0a5427f1df1ae67f4e2a2e9 (diff) | |
download | uBlock-749b6f186d59c65655d49d5859900746b502cb84.zip uBlock-749b6f186d59c65655d49d5859900746b502cb84.tar.gz uBlock-749b6f186d59c65655d49d5859900746b502cb84.tar.bz2 |
Use a dedicated file for storing extension info
Chrome has getManifest(), Safari doesn't have anything, Firefox has an
asynchronous API...
So, instead of using extension APIs, store the common informations
(extension name, version, homepage url) in a file (vapi-appinfo.js), which
can be included when it's needed (its data will be available at vAPI.app.____).
The file's content is updated each time the extension is being built, so
it shouldn't be modified manually.
Diffstat (limited to 'src/popup.html')
-rw-r--r-- | src/popup.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/popup.html b/src/popup.html index 0c2ea30..c86b512 100644 --- a/src/popup.html +++ b/src/popup.html @@ -9,7 +9,7 @@ </head> <body> -<h4 title="popupTipDashboard">µBlock<span id="version"></span></h4> +<h4 title="popupTipDashboard">v<span id="version"></span></h4> <div> <p id="switch" data-i18n-tip="popupPowerSwitchInfo"><span class="fa"></span></p> <p id="switch-hint"></p> @@ -55,6 +55,7 @@ <script src="js/js-loader.js" data-jsList=" js/vapi-common.js js/vapi-client.js +js/vapi-appinfo.js js/udom.js js/i18n.js js/popup.js |