From 749b6f186d59c65655d49d5859900746b502cb84 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Mon, 20 Oct 2014 22:10:59 +0200 Subject: [PATCH] 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. --- src/Info.plist | 2 +- src/about.html | 5 ++-- src/background.html | 1 + src/js/about.js | 2 +- src/js/assets.js | 2 +- src/js/background.js | 3 -- src/js/messaging.js | 2 +- src/js/popup.js | 3 +- src/js/storage.js | 68 +++++++++++++++++++++--------------------- src/js/vapi-appinfo.js | 10 +++++++ src/popup.html | 3 +- tools/build_meta.py | 12 ++++++++ 12 files changed, 68 insertions(+), 45 deletions(-) create mode 100644 src/js/vapi-appinfo.js diff --git a/src/Info.plist b/src/Info.plist index cb50fc337..2f5bbe56c 100644 --- a/src/Info.plist +++ b/src/Info.plist @@ -15,7 +15,7 @@ CFBundleShortVersionString 0.7.0.7 CFBundleVersion - 1452564 + 1452580 Chrome Database Quota diff --git a/src/about.html b/src/about.html index f6589be26..081b981de 100644 --- a/src/about.html +++ b/src/about.html @@ -10,7 +10,7 @@ -

µBlock

+