From 9515769fb583a5d00e84191c6a85dcdf58eb08a3 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 2 Dec 2014 14:02:17 -0200 Subject: [PATCH] extension restart is platform-dependent --- platform/chromium/vapi-background.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 6243fd1..74c656b 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -48,6 +48,12 @@ vAPI.app = { /******************************************************************************/ +vAPI.app.restart = function() { + chrome.runtime.reload(); +}; + +/******************************************************************************/ + vAPI.storage = chrome.storage.local; /******************************************************************************/