From dccbbb3879d6d75fe5465c942798d6ea7dd60075 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 1 Dec 2014 14:25:33 -0200 Subject: [PATCH] remove depending on vapi-appinfo.js --- platform/chromium/vapi-background.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 22e6e8d..6243fd1 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -35,11 +35,19 @@ self.vAPI = self.vAPI || {}; var vAPI = self.vAPI; var chrome = self.chrome; +var manifest = chrome.runtime.getManifest(); vAPI.chrome = true; /******************************************************************************/ +vAPI.app = { + name: manifest.name, + version: manifest.version +}; + +/******************************************************************************/ + vAPI.storage = chrome.storage.local; /******************************************************************************/