From c80280bd2da40c720e636ede3d6b2d34ae27feb6 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 14 Mar 2015 14:12:05 -0400 Subject: [PATCH] this fixes #792 --- platform/firefox/vapi-common.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/platform/firefox/vapi-common.js b/platform/firefox/vapi-common.js index de8f92f..30cac60 100644 --- a/platform/firefox/vapi-common.js +++ b/platform/firefox/vapi-common.js @@ -109,6 +109,20 @@ vAPI.closePopup = function() { /******************************************************************************/ +// A localStorage-like object which should be accessible from the +// background page or auxiliary pages. +// This storage is optional, but it is nice to have, for a more polished user +// experience. + +vAPI.localStorage = { + key: function(){}, + getItem: function(){}, + setItem: function(){}, + removeItem: function(){} +}; + +/******************************************************************************/ + })(); /******************************************************************************/